15 #ifndef SHAKA_EMBEDDED_SHAKA_PLAYER_STORAGE_H_ 16 #define SHAKA_EMBEDDED_SHAKA_PLAYER_STORAGE_H_ 18 #import <Foundation/Foundation.h> 25 NS_ASSUME_NONNULL_BEGIN
31 @protocol ShakaPlayerStorageClient <NSObject>
38 - (void)onStorageProgress:(
double)progress
51 - (nullable instancetype)initWithError:(NSError * _Nullable __autoreleasing * _Nullable)error NS_SWIFT_NAME(init());
52 - (nullable instancetype)initWithPlayer:(
ShakaPlayer * _Nullable) player
53 andError:(NSError * _Nullable __autoreleasing * _Nullable)error NS_SWIFT_NAME(init(player:));
56 @property(atomic, weak, nullable) id<ShakaPlayerStorageClient>
client;
86 - (void)removeEmeSessionsWithBlock:(
void (^)(BOOL,
ShakaPlayerError * _Nullable)) block;
93 - (void) store:(NSString*)uri
100 - (void)store:(NSString *)uri
101 withAppMetadata:(NSDictionary<NSString *, NSString *> *)data
113 - (void)configure:(const NSString *)namePath withBool:(BOOL)value;
123 - (void)configure:(const NSString *)namePath withDouble:(
double)value;
133 - (void)configure:(const NSString *)namePath withString:(const NSString *)value;
142 - (void)configureWithDefault:(const NSString *)namePath;
146 NS_ASSUME_NONNULL_END
147 #endif // SHAKA_EMBEDDED_SHAKA_PLAYER_STORAGE_H_
void(^ ShakaPlayerAsyncBlock)(ShakaPlayerError *_Nullable)
id< ShakaPlayerStorageClient > client