Mesosfer Class Reference
Inherits from | NSObject |
---|---|
Declared in | Mesosfer.h Mesosfer.m |
Overview
The Mesosfer
class contains static functions that handle global configuration for the Mesosfer framework.
+ initializeWithApplicationId:clientKey:
Sets the applicationId and clientKey of your application.
+ (void)initializeWithApplicationId:(nonnull NSString *)applicationId clientKey:(nonnull NSString *)clientKey
Parameters
applicationId |
The application id of your Mesosfer application. |
---|---|
clientKey |
The client key of your Mesosfer application. |
Declared In
Mesosfer.h
+ isInitialized
The initialization state of Mesosfer framework.
+ (BOOL)isInitialized
Declared In
Mesosfer.h
+ sharedInstance
Gets Mesosfer
shared instance.
+ (nullable instancetype)sharedInstance
Return Value
Shared instance of Mesosfer
.
Declared In
Mesosfer.h
+ applicationId
The current application id that was used to configure Mesosfer framework.
+ (nullable NSString *)applicationId
Declared In
Mesosfer.h
+ clientKey
The current client key that was used to configure Mesosfer framework.
+ (nullable NSString *)clientKey
Declared In
Mesosfer.h
+ version
The current version of Mesosfer framework.
+ (nonnull NSString *)version
Declared In
Mesosfer.h
+ setPushNotification:
Sets the push notification service mode.
+ (void)setPushNotification:(BOOL)flag
Parameters
flag |
True to enable it, otherwise false or leave it. |
---|
Declared In
Mesosfer.h
– setDeviceTokenFromData:
Set device token in current installation and save it to Mesosfer.
- (void)setDeviceTokenFromData:(nonnull NSData *)deviceToken
Parameters
deviceToken |
The device token data. |
---|
Declared In
Mesosfer.h
+ setLogLevel:
Sets the level of logging to display.
+ (void)setLogLevel:(MFLogLevel)logLevel
Parameters
logLevel |
Log level to set. |
---|
Discussion
By default:
- If running inside an app that was downloaded from iOS App Store - it is set to MFLogLevelNone
- All other cases - it is set to MFLogLevelWarning
See Also
Declared In
Mesosfer.h
+ logLevel
Log level that will be displayed.
+ (MFLogLevel)logLevel
Return Value
A MFLogLevel
value.
Discussion
By default:
- If running inside an app that was downloaded from iOS App Store - it is set to
MFLogLevelNone
- All other cases - it is set to
MFLogLevelWarning
See Also
Declared In
Mesosfer.h