blob: 624d1093156b5e4ab5311a4e77a5c88806bca47e [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;
import org.chromium.chrome.browser.init.ActivityLifecycleDispatcher;
/**
* Implement this interface and register in {@link ActivityLifecycleDispatcher} to receive
* onWindowFocusChange events.
*/
public interface WindowFocusChangedObserver extends LifecycleObserver {
/**
* Called when the current Window of the activity gains or loses focus.
*/
void onWindowFocusChanged(boolean hasFocus);
}