blob: 3919328c6fd31f4857e2bae41f8d838730eb9c9f [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.
#import <UIKit/UIKit.h>
class FullscreenController;
class FullscreenMediator;
// Helper class that listens for system notifications. This class will disable
// fullscreen when:
// - voice over is enabled
// - the keyboard is visible
// Additionally, this object notifies the mediator of foreground events.
@interface FullscreenSystemNotificationObserver : NSObject
// Designated initializer that updates |controller| and |mediator| for system
// notifications.
- (nullable instancetype)
initWithController:(nonnull FullscreenController*)controller
mediator:(nonnull FullscreenMediator*)mediator
- (nullable instancetype)init NS_UNAVAILABLE;
// Stops observing notifications.
- (void)disconnect;