blob: a1b53425dd74ff5cd67fa9c9eb655d17c71cfc1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// SDLViewControllerPresentable.h
// SmartDeviceLink-iOS
//
// Created by Joel Fischer on 7/15/16.
// Copyright © 2016 smartdevicelink. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/// A protocol used to tell a view controller to present another view controller. This makes testing of modal VCs' presentation easier.
@protocol SDLViewControllerPresentable <NSObject>
/// The view controller to be presented as a lockscreen
@property (strong, nonatomic, nullable) UIViewController *lockViewController;
/// Whether or not the lockscreen should be presented
@property (assign, nonatomic, readonly) BOOL presented;
/// Dismisses and destroys the lock screen window
- (void)stop;
/// Shows or hides the lock screen with animation
/// @param show True if the lock screen should be presented; false if dismissed.
- (void)updateLockScreenToShow:(BOOL)show;
@end
NS_ASSUME_NONNULL_END
|