urbanairship-core/src/main/java/com/urbanairship/push/notifications/DefaultNotificationFactory.java
public static DefaultNotificationFactory newFactory(@NonNull Context context, @NonNull AirshipConfigOptions options) {
        DefaultNotificationFactory factory = new DefaultNotificationFactory(context);

        if (options.notificationIcon != 0) {
            factory.setSmallIconId(options.notificationIcon);
        }

        factory.setColor(options.notificationAccentColor);
        factory.setNotificationChannel(options.notificationChannel);

        return factory;
    }
/**
     * Creates the default notification factory with settings applied from AirshipConfig options.
     * @param context The application context.
     * @param options The airship config options.
     * @return The default notification factory.
     */
Creates the default notification factory with settings applied from AirshipConfig options.
@param context The application context.
@param options The airship config options.
@return The default notification factory.
Creates the default notification factory with settings applied from AirshipConfig options . @param context The application context . @param options The airship config options . @return The default notification factory .
public static DefaultNotificationFactory newFactory(@NonNull Context context, @NonNull AirshipConfigOptions options) {
        DefaultNotificationFactory factory = new DefaultNotificationFactory(context);
        if (options.notificationIcon != 0) {
            factory.setSmallIconId(options.notificationIcon);
        }
        factory.setColor(options.notificationAccentColor);
        factory.setNotificationChannel(options.notificationChannel);
        return factory;
    }
public static DefaultNotificationFactory newFactory ( @ NonNull Context context , @ NonNull AirshipConfigOptions options ) { DefaultNotificationFactory factory = new DefaultNotificationFactory ( context ) ; if ( options . notificationIcon != 0 ) { factory . setSmallIconId ( options . notificationIcon ) ; } factory . setColor ( options . notificationAccentColor ) ; factory . setNotificationChannel ( options . notificationChannel ) ; return factory ; }
Creates the default notification factory with settings applied from AirshipConfig options.
Creates the default notification factory with settings applied from AirshipConfig options .