2 #import <Foundation/Foundation.h>
3 #import <Security/SecEscrowRequest.h>
5 NS_ASSUME_NONNULL_BEGIN
7 NSXPCInterface
* SecEscrowRequestSetupControlProtocol(NSXPCInterface
* interface
);
10 @protocol EscrowRequestXPCProtocol
<NSObject
>
12 - (void)triggerEscrowUpdate
:(NSString
*)reason
13 reply
:(void (^)(NSError
* _Nullable error
))reply
;
15 - (void)cachePrerecord
:(NSString
*)uuid
16 serializedPrerecord
:(nonnull NSData
*)prerecord
17 reply
:(nonnull
void (^)(NSError
* _Nullable
))reply
;
19 - (void)fetchPrerecord
:(NSString
*)prerecordUUID
20 reply
:(void (^)(NSData
* _Nullable serializedPrerecord
, NSError
* _Nullable error
))reply
;
22 - (void)fetchRequestWaitingOnPasscode
:(void (^)(NSString
* _Nullable requestUUID
, NSError
* _Nullable error
))reply
;
24 - (void)fetchRequestStatuses
:(void (^)(NSDictionary
<NSString
*, NSString
*>* _Nullable requestUUID
, NSError
* _Nullable error
))reply
;
26 - (void)resetAllRequests
:(void (^)(NSError
* _Nullable error
))reply
;
28 - (void)storePrerecordsInEscrow
:(void (^)(uint64_t count
, NSError
* _Nullable error
))reply
;