Package net.rim.device.api.io.messaging

Examples of net.rim.device.api.io.messaging.Destination


    /**
     * Pauses destination from receiving incoming push messages
     */
    public void pauseReceiver(final String uriStr) {
        try {
            final Destination dest =
                    DestinationFactory.getReceiverDestination(URI
                            .create(uriStr));
            if (dest != null) {
                dest.pause();
            }
        } catch (final Exception e) {
            alertDialog(e.toString());
        }
    }
View Full Code Here


    /**
     * Resumes delivery of messages to destination specified by provided URI
     */
    public void resumeReceiver(final String uriStr) {
        try {
            final Destination dest =
                    DestinationFactory.getReceiverDestination(URI
                            .create(uriStr));
            if (dest != null) {
                dest.resume();
            }
        } catch (final Exception e) {
            alertDialog(e.toString());
        }
    }
View Full Code Here

     *
     * @see Destination#release()
     */
    public void releaseReceiver(final String uriStr) {
        try {
            final Destination dest =
                    DestinationFactory.getReceiverDestination(URI
                            .create(uriStr));
            if (dest != null) {
                dest.release();
            }
        } catch (final Exception e) {
            alertDialog(e.toString());
        }
    }
View Full Code Here

    /**
     * Destroys destination - should be executed when the app is uninstalled
     */
    public void destroyReceiver(final String uriStr) {
        try {
            final Destination dest =
                    DestinationFactory.getReceiverDestination(URI
                            .create(uriStr));
            if (dest != null) {
                dest.destroy();
            }
        } catch (final Exception e) {
            alertDialog(e.toString());
        }
    }
View Full Code Here

TOP

Related Classes of net.rim.device.api.io.messaging.Destination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.