mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
31 lines
848 B
Objective-C
31 lines
848 B
Objective-C
//
|
|
// ALTNotificationConnection.h
|
|
// AltServer
|
|
//
|
|
// Created by Riley Testut on 1/10/20.
|
|
// Copyright © 2020 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
#import <AltSign/AltSign.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
NS_SWIFT_NAME(NotificationConnection)
|
|
@interface ALTNotificationConnection : NSObject
|
|
|
|
@property (nonatomic, copy, readonly) ALTDevice *device;
|
|
|
|
@property (nonatomic, copy, nullable) void (^receivedNotificationHandler)(CFNotificationName notification);
|
|
|
|
- (void)startListeningForNotifications:(NSArray<NSString *> *)notifications
|
|
completionHandler:(void (^)(BOOL success, NSError *_Nullable error))completionHandler;
|
|
|
|
- (void)sendNotification:(CFNotificationName)notification
|
|
completionHandler:(void (^)(BOOL success, NSError *_Nullable error))completionHandler;
|
|
|
|
- (void)disconnect;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|