QueenMaterial
@interface QueenMaterial : NSObject
/****
* Specifies the delegate of QueenMaterial.
*/
@property (nonatomic, weak) id <QueenMaterialDelegate> delegate;
/****
* The shared instance of QueenMaterial.
*/
+ (instancetype)sharedInstance;
/****
* Get the local path of the resource package.
* @param type materialType.
* @return The local path of the resource package.
*/
- (NSString *)getMaterialPath:(kQueenMaterialType)type;
- (BOOL)requestMaterial:(kQueenMaterialType)type;
/****
* Setting the custom resource package link must precede the resource download request
* @param type materialType.
* @param materialURL The URL of resource package.
*/
- (void)setMaterialURL:(kQueenMaterialType)type withURL:(NSString *)materialURL;
@end
Undocumented
-
Specifies the delegate of QueenMaterial.
Declaration
Objective-C
@property (nonatomic, weak) id<QueenMaterialDelegate> _Nullable delegate;
-
The shared instance of QueenMaterial.
Declaration
Objective-C
+ (nonnull instancetype)sharedInstance;
-
Get the local path of the resource package.
Declaration
Objective-C
- (nonnull NSString *)getMaterialPath:(kQueenMaterialType)type;
Parameters
type
materialType.
Return Value
The local path of the resource package.
-
Undocumented
Declaration
Objective-C
- (BOOL)requestMaterial:(kQueenMaterialType)type;
-
Setting the custom resource package link must precede the resource download request
Declaration
Objective-C
- (void)setMaterialURL:(kQueenMaterialType)type withURL:(nonnull NSString *)materialURL;
Parameters
type
materialType.
materialURL
The URL of resource package.