CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/ios/ViewControllerCommon.h
Views: 1401
1
#pragma once
2
3
#import <UIKit/UIKit.h>
4
5
@protocol PPSSPPViewController<NSObject>
6
@optional
7
8
- (void)hideKeyboard;
9
- (void)showKeyboard;
10
- (void)shareText:(NSString *)text;
11
- (void)shutdown;
12
- (void)bindDefaultFBO;
13
- (UIView *)getView;
14
- (void)startLocation;
15
- (void)stopLocation;
16
- (void)startVideo:(int)width height:(int)height;
17
- (void)stopVideo;
18
- (void)appSwitchModeChanged;
19
20
// Forwarded from the AppDelegate
21
- (void)didBecomeActive;
22
- (void)willResignActive;
23
24
- (void)uiStateChanged;
25
26
@end
27
28
extern id <PPSSPPViewController> sharedViewController;
29
30
#define IS_IPAD() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
31
#define IS_IPHONE() ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone)
32
33