EscrowRequestXPCProtocol.h
1 2 #import <Foundation/Foundation.h> 3 #import <Security/SecEscrowRequest.h> 4 5 NS_ASSUME_NONNULL_BEGIN 6 7 NSXPCInterface* SecEscrowRequestSetupControlProtocol(NSXPCInterface* interface); 8 9 10 @protocol EscrowRequestXPCProtocol <NSObject> 11 12 - (void)triggerEscrowUpdate:(NSString*)reason 13 reply:(void (^)(NSError* _Nullable error))reply; 14 15 - (void)cachePrerecord:(NSString*)uuid 16 serializedPrerecord:(nonnull NSData *)prerecord 17 reply:(nonnull void (^)(NSError * _Nullable))reply; 18 19 - (void)fetchPrerecord:(NSString*)prerecordUUID 20 reply:(void (^)(NSData* _Nullable serializedPrerecord, NSError* _Nullable error))reply; 21 22 - (void)fetchRequestWaitingOnPasscode:(void (^)(NSString* _Nullable requestUUID, NSError* _Nullable error))reply; 23 24 - (void)fetchRequestStatuses:(void (^)(NSDictionary<NSString*, NSString*>* _Nullable requestUUID, NSError* _Nullable error))reply; 25 26 - (void)resetAllRequests:(void (^)(NSError* _Nullable error))reply; 27 28 - (void)storePrerecordsInEscrow:(void (^)(uint64_t count, NSError* _Nullable error))reply; 29 30 @end 31 32 NS_ASSUME_NONNULL_END