blob: f0627467a8ac3ab179478524e9e963acbbbe1d94 [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
* onWindowFocusChange events.
*/
public interface WindowFocusChangedObserver extends LifecycleObserver {
/**
* Called when the current Window of the activity gains or loses focus.
*/
void onWindowFocusChanged(boolean hasFocus);
}