51 lines
1.3 KiB
Objective-C
51 lines
1.3 KiB
Objective-C
#import <Flutter/Flutter.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import <CoreFoundation/CoreFoundation.h>
|
|
#import <sqlite3.h>
|
|
#include <sys/sysctl.h>
|
|
#import <MediaPlayer/MediaPlayer.h>
|
|
#import <AudioToolbox/AudioToolbox.h>
|
|
|
|
#import "sysInfo.h"
|
|
#import "UdpHelper.h"
|
|
#import "talk_Class.h"
|
|
#import "Call.h"
|
|
#import "P2pTest.h"
|
|
#import "Opendoor.h"
|
|
#import "HKHTextField.h"
|
|
#import <CloudPushSDK/CloudPushSDK.h>
|
|
|
|
#define SoundOK 0
|
|
#define SoundNotice 1
|
|
#define SoundError 2
|
|
#define SoundAlarm 3
|
|
#define SoundRing 4
|
|
|
|
@interface AppDelegate : FlutterAppDelegate <UIApplicationDelegate>
|
|
|
|
@property (strong, nonatomic) UIWindow *window;
|
|
@property (strong, nonatomic) Opendoor *main;
|
|
@property (strong, nonatomic) Call *callOut;
|
|
@property (strong, nonatomic) P2pTest *p2ptest;
|
|
@property (strong, nonatomic) AVAudioPlayer *audioPlayer;
|
|
@property (nonatomic) BOOL isBack;
|
|
@property (nonatomic) BOOL TalkSendAudio;
|
|
|
|
@property sqlite3 *db;
|
|
@property (strong, nonatomic) sysInfo *sysinfo;
|
|
@property (strong, nonatomic) UdpHelper *udp;
|
|
@property (strong, nonatomic) talk_Class *talk;
|
|
@property (strong, nonatomic) HKHTextField *activeTextField;
|
|
|
|
|
|
- (void)playSoundWith:(NSInteger)mode;
|
|
- (void)OpenDoorSucc:(NSString *)equid;
|
|
- (void)OpenDoorFail:(NSString *)equid;
|
|
- (void)ring;
|
|
- (void)ring_stop;
|
|
|
|
|
|
@end
|