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.

88 lines
1.8 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"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
{
UIBackgroundTaskIdentifier taskIdentifier;
}
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) NSString *deviceTokenStr;
- (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