MFPPush Class Reference
Inherits from | NSObject |
---|---|
Declared in | MFPPush.h |
Overview
MFPPush class provides APIs for functionalities that are supported by the MFP Push Notification SDK
+ sharedInstance
This method creates the singleton instance of MFPPush
+ (MFPPush *)sharedInstance
Return Value
The instance of the initialized MFPPush
Declared In
MFPPush.h
– initialize:
This method initializes the MFPPush instance
- (void)initialize:(NSTimeInterval)timeout
Declared In
MFPPush.h
– isPushSupported
This method checks whether push notification is supported.
- (BOOL)isPushSupported
Declared In
MFPPush.h
– getSubscriptions:
This method retrieves all the subscriptions of the device
- (void)getSubscriptions:(void ( ^ ) ( WLResponse *response , NSError *error ))completionHandler
Parameters
completionHandler |
|
---|
Declared In
MFPPush.h
– getTags:
This method retrieves all the available tags of the application
- (void)getTags:(void ( ^ ) ( WLResponse *response , NSError *error ))completionHandler
Parameters
completionHandler |
|
---|
Declared In
MFPPush.h
– registerDevice:completionHandler:
This method registers the device with the push service
- (void)registerDevice:(NSDictionary *)options completionHandler:(void ( ^ ) ( WLResponse *response , NSError *error ))completionHandler
Parameters
options |
|
---|---|
completionHandler |
|
Declared In
MFPPush.h
– sendDeviceToken:
This method sends the device token to be registered with the push service
- (void)sendDeviceToken:(NSData *)deviceToken
Parameters
deviceToken |
|
---|
Declared In
MFPPush.h
– subscribe:completionHandler:
This method subscribes the device to the given tags
- (void)subscribe:(NSArray *)tagsArray completionHandler:(void ( ^ ) ( WLResponse *response , NSError *error ))completionHandler
Parameters
tagsArray |
|
---|---|
completionHandler |
|
Declared In
MFPPush.h
– unsubscribe:completionHandler:
This method unsubscribes the device from the given tags
- (void)unsubscribe:(NSArray *)tagsArray completionHandler:(void ( ^ ) ( WLResponse *response , NSError *error ))completionHandler
Parameters
tagsArray |
|
---|---|
completionHandler |
|
Declared In
MFPPush.h
– unregisterDevice:
This method unregisters the device from the push service
- (void)unregisterDevice:(void ( ^ ) ( WLResponse *response , NSError *error ))completionHandler
Parameters
completionHandler |
|
---|
Declared In
MFPPush.h