MFStoryline Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | MFStoryline.h MFStoryline.m |
Overview
The MFStoryline class represent a storyline object. Each of storyline can have multiple MFStorylineDetail object.
title
Specifies the title of storyline.
@property (strong, nonatomic, nullable) NSString *titleDeclared In
MFStoryline.h
isEnabled
Specifies the state of storyline, whether it is enabled or disabled.
@property (assign, nonatomic) BOOL isEnabledDeclared In
MFStoryline.h
+ storylineWithTitle:NS_SWIFT_NAME:
Creates a new MFStoryline with a title.
+ (nonnull instancetype)storylineWithTitle:(nonnull NSString *)title NS_SWIFT_NAMEParameters
title |
A name can be any alphanumeric string that begins with a letter. It represents a unique name for your storyline, like ‘Story for Independence Day’. |
|---|
Return Value
the object beacon that is instantiated with the given title.
Declared In
MFStoryline.h
+ storylineWithObjectId:NS_SWIFT_NAME:
Creates a reference to an existing MFStoryline for use in creating associations between MFStorylines.
+ (nonnull instancetype)storylineWithObjectId:(nonnull NSString *)objectId NS_SWIFT_NAMEParameters
objectId |
The object id for the referenced |
|---|
Return Value
A MFStoryline instance without data.
Discussion
Warning: You need to call MFStoryline.fetchAsyncWithBlock: to fetch object from Mesosfer cloud.
Declared In
MFStoryline.h
– dictionary
Gets all key and value pair of MFStoryline object in a dictionary.
- (nullable NSDictionary *)dictionaryReturn Value
The dictionary of all key and value pair object.
Declared In
MFStoryline.h
– fetchAsyncWithBlock:
Fetch the current MFStoryline data from Mesosfer cloud asynchronously and executes the given callback block.
- (void)fetchAsyncWithBlock:(nullable MFObjectResultBlock)blockParameters
block |
The block to execute. It shoud have the following argument signature: |
|---|
Declared In
MFStoryline.h
– saveAsyncWithBlock:
Saves the MFStoryline asynchronously and executes the given callback block.
- (void)saveAsyncWithBlock:(nullable MFBooleanResultBlock)blockParameters
block |
The block to execute. It should have the following argument signature: |
|---|
Declared In
MFStoryline.h
– deleteAsyncWithBlock:
- (void)deleteAsyncWithBlock:(nullable MFBooleanResultBlock)blockParameters
block |
The block to execute. It should have the following argument signature: |
|---|
Declared In
MFStoryline.h