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.
 
 
 

71 lines
1.5 KiB

//
// AppDelegate.h
// LekangGuard
//
// Created by ecell on 2022/9/21.
//
#import <UIKit/UIKit.h>
#import <UserNotifications/UserNotifications.h>
#import <PushKit/PushKit.h>
#import <Foundation/Foundation.h>
#define VideoTimerIdentify @"VideoTimerIdentify"
#define PlayVibrationIdentify @"PlayVibrationIdentify"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (nonatomic, strong) CLLocation *curLocation;
- (void)showRootViewController;
//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;
/**
清除视频的本地通知
*/
-(void)cleanVideoNotification;
/**
显示视频的本地通知(会震动响铃)
@param alertStr 显示内容
@param dataInfo 通知内容
*/
-(void)generateLocalNotificationsWithAlertStr:(NSString*)alertStr AndDataInfo:(NSDictionary*)dataInfo;
/**
//MARK: 创建一个平常的本地通知平常的本地通知
*/
-(void)setNormallyAlertStr:(NSString *)alertStr UserInfo:(NSDictionary*)userinfo;
-(void)stopRing;
/// 注册远程通知
- (void)registerForRemoteNotification;
@end