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 *)clientKeyParameters
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)isInitializedDeclared In
Mesosfer.h
+ sharedInstance
Gets Mesosfer shared instance.
+ (nullable instancetype)sharedInstanceReturn Value
Shared instance of Mesosfer.
Declared In
Mesosfer.h
+ applicationId
The current application id that was used to configure Mesosfer framework.
+ (nullable NSString *)applicationIdDeclared In
Mesosfer.h
+ clientKey
The current client key that was used to configure Mesosfer framework.
+ (nullable NSString *)clientKeyDeclared In
Mesosfer.h
+ version
The current version of Mesosfer framework.
+ (nonnull NSString *)versionDeclared In
Mesosfer.h
+ setPushNotification:
Sets the push notification service mode.
+ (void)setPushNotification:(BOOL)flagParameters
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 *)deviceTokenParameters
deviceToken |
The device token data. |
|---|
Declared In
Mesosfer.h
+ setLogLevel:
Sets the level of logging to display.
+ (void)setLogLevel:(MFLogLevel)logLevelParameters
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)logLevelReturn 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