sample/src/androidTest/java/com/urbanairship/sample/SampleTest.java
private void scheduleInAppMessageV2FullScreen(FullScreenDisplayContent displayContent) {

        UAirship.shared().getInAppMessagingManager().cancelMessage("someId");

        InAppMessage message = InAppMessage.newBuilder()
                                           .setId("someId")
                                           .setDisplayContent(displayContent)
                                           .build();

        InAppMessageScheduleInfo scheduleInfo = InAppMessageScheduleInfo.newBuilder()
                                                                        .setMessage(message)
                                                                        .addTrigger(Triggers.newActiveSessionTriggerBuilder().setGoal(1).build())
                                                                        .build();

        UAirship.shared().getInAppMessagingManager().scheduleMessage(scheduleInfo);
    }
/**
     * Schedules a fullscreen in-app message.
     *
     * @param displayContent The fullscreen display content.
     */
Schedules a fullscreen in-app message.
@param displayContent The fullscreen display content.
Schedules a fullscreen in - app message . @param displayContent The fullscreen display content .
private void scheduleInAppMessageV2FullScreen(FullScreenDisplayContent displayContent) {
        UAirship.shared().getInAppMessagingManager().cancelMessage("someId");
        InAppMessage message = InAppMessage.newBuilder()
                                           .setId("someId")
                                           .setDisplayContent(displayContent)
                                           .build();
        InAppMessageScheduleInfo scheduleInfo = InAppMessageScheduleInfo.newBuilder()
                                                                        .setMessage(message)
                                                                        .addTrigger(Triggers.newActiveSessionTriggerBuilder().setGoal(1).build())
                                                                        .build();
        UAirship.shared().getInAppMessagingManager().scheduleMessage(scheduleInfo);
    }
private void scheduleInAppMessageV2FullScreen ( FullScreenDisplayContent displayContent ) { UAirship . shared ( ) . getInAppMessagingManager ( ) . cancelMessage ( "someId" ) ; InAppMessage message = InAppMessage . newBuilder ( ) . setId ( "someId" ) . setDisplayContent ( displayContent ) . build ( ) ; InAppMessageScheduleInfo scheduleInfo = InAppMessageScheduleInfo . newBuilder ( ) . setMessage ( message ) . addTrigger ( Triggers . newActiveSessionTriggerBuilder ( ) . setGoal ( 1 ) . build ( ) ) . build ( ) ; UAirship . shared ( ) . getInAppMessagingManager ( ) . scheduleMessage ( scheduleInfo ) ; }
Schedules a fullscreen in-app message.
Schedules a fullscreen in - app message .