urbanairship-core/src/main/java/com/urbanairship/richpush/RichPushInbox.java
public Cancelable fetchMessages(final FetchMessagesCallback callback, Looper looper) {
        PendingFetchMessagesCallback cancelableOperation = new PendingFetchMessagesCallback(callback, looper);

        synchronized (pendingFetchCallbacks) {
            pendingFetchCallbacks.add(cancelableOperation);

            if (!isFetchingMessages) {
                JobInfo jobInfo = JobInfo.newBuilder()
                                         .setAction(InboxJobHandler.ACTION_RICH_PUSH_MESSAGES_UPDATE)
                                         .setId(JobInfo.RICH_PUSH_UPDATE_MESSAGES)
                                         .setAirshipComponent(RichPushInbox.class)
                                         .build();

                jobDispatcher.dispatch(jobInfo);
            }

            isFetchingMessages = true;
        }

        return cancelableOperation;
    }
/**
     * Fetches the latest inbox changes from Urban Airship.
     * <p/>
     * Normally this method is not called directly as the message list is automatically fetched when
     * the application foregrounds or when a notification with an associated message is received.
     * <p/>
     * If the fetch request completes and results in a change to the messages,
     * {@link Listener#onInboxUpdated()} will be called.
     *
     * @param callback Callback to be notified when the request finishes fetching the messages.
     * @param looper The looper to post the callback on.
     * @return A cancelable object that can be used to cancel the callback.
     */
Fetches the latest inbox changes from Urban Airship.

Normally this method is not called directly as the message list is automatically fetched when
the application foregrounds or when a notification with an associated message is received.

If the fetch request completes and results in a change to the messages,
Listener#onInboxUpdated() will be called.

@param callback Callback to be notified when the request finishes fetching the messages.
@param looper The looper to post the callback on.
@return A cancelable object that can be used to cancel the callback.
Fetches the latest inbox changes from Urban Airship . Normally this method is not called directly as the message list is automatically fetched when the application foregrounds or when a notification with an associated message is received . If the fetch request completes and results in a change to the messages Listener#onInboxUpdated () will be called . @param callback Callback to be notified when the request finishes fetching the messages . @param looper The looper to post the callback on . @return A cancelable object that can be used to cancel the callback .
public Cancelable fetchMessages(final FetchMessagesCallback callback, Looper looper) {
        PendingFetchMessagesCallback cancelableOperation = new PendingFetchMessagesCallback(callback, looper);
        synchronized (pendingFetchCallbacks) {
            pendingFetchCallbacks.add(cancelableOperation);
            if (!isFetchingMessages) {
                JobInfo jobInfo = JobInfo.newBuilder()
                                         .setAction(InboxJobHandler.ACTION_RICH_PUSH_MESSAGES_UPDATE)
                                         .setId(JobInfo.RICH_PUSH_UPDATE_MESSAGES)
                                         .setAirshipComponent(RichPushInbox.class)
                                         .build();
                jobDispatcher.dispatch(jobInfo);
            }
            isFetchingMessages = true;
        }
        return cancelableOperation;
    }
public Cancelable fetchMessages ( final FetchMessagesCallback callback , Looper looper ) { PendingFetchMessagesCallback cancelableOperation = new PendingFetchMessagesCallback ( callback , looper ) ; synchronized ( pendingFetchCallbacks ) { pendingFetchCallbacks . add ( cancelableOperation ) ; if ( ! isFetchingMessages ) { JobInfo jobInfo = JobInfo . newBuilder ( ) . setAction ( InboxJobHandler . ACTION_RICH_PUSH_MESSAGES_UPDATE ) . setId ( JobInfo . RICH_PUSH_UPDATE_MESSAGES ) . setAirshipComponent ( RichPushInbox . class ) . build ( ) ; jobDispatcher . dispatch ( jobInfo ) ; } isFetchingMessages = true ; } return cancelableOperation ; }
Fetches the latest inbox changes from Urban Airship.
Fetches the latest inbox changes from Urban Airship .