You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.9 KiB
92 lines
1.9 KiB
// |
|
// AppDelegate.h |
|
// watch |
|
// |
|
// Created by xTT on 2017/7/3. |
|
// Copyright © 2017年 xTT. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
#import <UserNotifications/UserNotifications.h> |
|
#define VideoTimerIdentify @"VideoTimerIdentify" |
|
#define PlayVibrationIdentify @"PlayVibrationIdentify" |
|
#import "MyTabBarViewController.h" |
|
|
|
@interface AppDelegate : UIResponder <UIApplicationDelegate> |
|
{ |
|
UIBackgroundTaskIdentifier taskIdentifier; |
|
} |
|
|
|
@property (strong, nonatomic) UIWindow *window; |
|
|
|
@property (strong, nonatomic) NSString *deviceTokenStr; |
|
|
|
|
|
@property (nonatomic ,strong) MyTabBarViewController *tabbarView; |
|
|
|
- (void)beingBackgroundUpdateTask; |
|
- (void)endBackgroundUpdateTask; |
|
|
|
- (void)initIQKeyBorard; |
|
- (void)closeIQKeyBorard; |
|
|
|
//APP 获取到的 VOIP 的 deviceToken |
|
@property (strong, nonatomic) NSData *deviceVoIPTokenData; |
|
|
|
//视频通话需要使用 Voip通话 |
|
@property (strong, nonatomic) NSString *deviceVoIPTokenStr; |
|
|
|
/** |
|
视频通话的本地通知 |
|
*/ |
|
@property (strong, nonatomic) UNMutableNotificationContent * backgroudMsg; |
|
|
|
/** |
|
是否停止响铃 |
|
*/ |
|
@property (assign, nonatomic) BOOL stopVibration; |
|
|
|
/** |
|
循环的次数 |
|
*/ |
|
@property (assign, nonatomic) int alertNotificationCount; |
|
|
|
/** |
|
是否不加载开屏广告 |
|
*/ |
|
@property (assign, nonatomic) BOOL isNOLoadSplashAD; |
|
|
|
|
|
/** |
|
删除增加按钮状态 |
|
*/ |
|
@property (assign, nonatomic) BOOL isTouch; |
|
|
|
/** |
|
清除视频的本地通知 |
|
*/ |
|
-(void)cleanVideoNotification; |
|
|
|
- (void)stajishiqi; |
|
|
|
/** |
|
显示视频的本地通知(会震动响铃) |
|
|
|
@param alertStr 显示内容 |
|
@param dataInfo 通知内容 |
|
*/ |
|
-(void)generateLocalNotificationsWithAlertStr:(NSString*)alertStr AndDataInfo:(NSDictionary*)dataInfo; |
|
|
|
/** |
|
//MARK: 创建一个平常的本地通知平常的本地通知 |
|
*/ |
|
-(void)setNormallyAlertStr:(NSString *)alertStr UserInfo:(NSDictionary*)userinfo; |
|
|
|
-(void)stopRing; |
|
|
|
/// 注册远程通知 |
|
- (void)registerForRemoteNotification; |
|
|
|
- (void)showRootViewController; |
|
@end |
|
|
|
|