UAirship { @MainThread public static void takeOff(@NonNull Application application) { takeOff(application, null, null); } UAirship(@NonNull AirshipConfigOptions airshipConfigOptions); @NonNull static UAirship shared(); @NonNull static Cancelable shared(@NonNull OnReadyCallback callback); @Nullable static UAirship waitForTakeOff(long millis); @NonNull static Cancelable shared(@Nullable Looper looper, @NonNull final OnReadyCallback callback); @MainThread static void takeOff(@NonNull Application application); @MainThread static void takeOff(@NonNull Application application, @Nullable OnReadyCallback readyCallback); @MainThread static void takeOff(@NonNull Application application, @Nullable AirshipConfigOptions options); @MainThread static void takeOff(@NonNull final Application application, @Nullable final AirshipConfigOptions options, @Nullable final OnReadyCallback readyCallback); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) static void land(); void setDeepLinkListener(@Nullable DeepLinkListener listener); @SuppressLint("UnknownNullness") static String getPackageName(); @NonNull static PackageManager getPackageManager(); @Nullable DeepLinkListener getDeepLinkListener(); @Nullable static PackageInfo getPackageInfo(); @SuppressLint("UnknownNullness") static ApplicationInfo getAppInfo(); @SuppressLint("UnknownNullness") static String getAppName(); static int getAppIcon(); static long getAppVersion(); @NonNull static Context getApplicationContext(); static boolean isFlying(); static boolean isTakingOff(); static boolean isMainProcess(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @NonNull ImageLoader getImageLoader(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @NonNull AirshipRuntimeConfig getRuntimeConfig(); void setImageLoader(@NonNull ImageLoader imageLoader); @NonNull static String getVersion(); @NonNull AirshipConfigOptions getAirshipConfigOptions(); @NonNull NamedUser getNamedUser(); @NonNull PushManager getPushManager(); @NonNull AirshipChannel getChannel(); @Nullable @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) AirshipLocationClient getLocationClient(); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) RemoteData getRemoteData(); @NonNull Analytics getAnalytics(); @NonNull ApplicationMetrics getApplicationMetrics(); @NonNull UrlAllowList getUrlAllowList(); @NonNull ActionRegistry getActionRegistry(); @NonNull ChannelCapture getChannelCapture(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @Nullable AccengageNotificationHandler getAccengageNotificationHandler(); @Platform int getPlatformType(); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) List<AirshipComponent> getComponents(); @SuppressWarnings("unchecked") @Nullable @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) T getComponent(@NonNull Class<T> clazz); @NonNull @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) T requireComponent(@NonNull Class<T> clazz); void setDataCollectionEnabled(boolean enabled); boolean isDataCollectionEnabled(); void setLocaleOverride(@Nullable Locale locale); Locale getLocale(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @NonNull LocaleManager getLocaleManager(); @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) @NonNull PushProviders getPushProviders(); @NonNull
    static final String ACTION_AIRSHIP_READY; @NonNull
    static final String EXTRA_CHANNEL_ID_KEY; @NonNull
    static final String EXTRA_PAYLOAD_VERSION_KEY; @NonNull
    static final String EXTRA_APP_KEY_KEY; static final int AMAZON_PLATFORM; static final int ANDROID_PLATFORM; static boolean LOG_TAKE_OFF_STACKTRACE; @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    @NonNull
    static final String DATA_COLLECTION_ENABLED_KEY; }
@Test public void testTakeOffNullApplication() { exception.expect(IllegalArgumentException.class); exception.expectMessage("Application argument must not be null"); UAirship.takeOff(null); }