blob: 91ad4ce430818029ff52c73208d6dce0bdf85577 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.lifecycle;
/**
* Implement this interface and register in {@link ActivityLifecycleDispatcher} to receive pause and
* resume with native events.
*/
public interface PauseResumeWithNativeObserver extends LifecycleObserver {
/**
* Called when activity is resumed, provided that native is initialized.
* If native is not initialized at that point, the call is postponed until it is.
*/
void onResumeWithNative();
/**
* Similar to {@link #onResumeWithNative}, but for the pause event.
*/
void onPauseWithNative();
}