urbanairship-core/src/main/java/com/urbanairship/push/notifications/WearableNotificationExtender.java
private Notification createWearPage(@NonNull JsonMap page) {
        NotificationCompat.BigTextStyle style = new NotificationCompat.BigTextStyle();

        String title = page.opt(TITLE_KEY).getString();
        if (!UAStringUtil.isEmpty(title)) {
            style.setBigContentTitle(title);
        }

        String alert = page.opt(ALERT_KEY).getString();
        if (!UAStringUtil.isEmpty(alert)) {
            style.bigText(alert);
        }

        return new NotificationCompat.Builder(context)
                .setAutoCancel(true)
                .setStyle(style)
                .build();
    }
/**
     * Creates the pages of the wearable notification.
     *
     * @param page The JsonMap page.
     * @return The notification with pages.
     */
Creates the pages of the wearable notification.
@param page The JsonMap page.
@return The notification with pages.
Creates the pages of the wearable notification . @param page The JsonMap page . @return The notification with pages .
private Notification createWearPage(@NonNull JsonMap page) {
        NotificationCompat.BigTextStyle style = new NotificationCompat.BigTextStyle();
        String title = page.opt(TITLE_KEY).getString();
        if (!UAStringUtil.isEmpty(title)) {
            style.setBigContentTitle(title);
        }
        String alert = page.opt(ALERT_KEY).getString();
        if (!UAStringUtil.isEmpty(alert)) {
            style.bigText(alert);
        }
        return new NotificationCompat.Builder(context)
                .setAutoCancel(true)
                .setStyle(style)
                .build();
    }
private Notification createWearPage ( @ NonNull JsonMap page ) { NotificationCompat . BigTextStyle style = new NotificationCompat . BigTextStyle ( ) ; String title = page . opt ( TITLE_KEY ) . getString ( ) ; if ( ! UAStringUtil . isEmpty ( title ) ) { style . setBigContentTitle ( title ) ; } String alert = page . opt ( ALERT_KEY ) . getString ( ) ; if ( ! UAStringUtil . isEmpty ( alert ) ) { style . bigText ( alert ) ; } return new NotificationCompat . Builder ( context ) . setAutoCancel ( true ) . setStyle ( style ) . build ( ) ; }
Creates the pages of the wearable notification.
Creates the pages of the wearable notification .