INNER CODE UNIT · Java

onHostDestroy

jamesisaac/react-native-background-task · android/src/main/java/com/jamesisaac/rnbackgroundtask/BackgroundTaskModule.java:127

    public void onHostDestroy() {
    }

    /**
     * Keep track of whether the RN app is in the foreground or not (note that even clicking the
     * Android menu button is enough to background the app).
     */
    private void setForeground(boolean foreground) {
        Log.d(TAG, String.format("Setting foreground %s", foreground));
        mForeground = foreground;
    }

    private void commitSchedule() {
        Log.d(TAG, "Committing job schedule");

        // Cancel any previous job
        JobManager.instance().cancelAll();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…