MLIMClientConfiguration Class Reference

Inherits from MLIMRuntimeObject : NSObject
Declared in MLIMClient.h

Overview

Configuration options for a MLIMClient. You should not modify a configuration after a MLIMClient is created.

  baseURL

The base url.

@property (nonatomic, strong) NSURL *baseURL

Declared In

MLIMClient.h

  appId

(Required) The MaxLeap app’s applicationId.

@property (nonatomic, strong) NSString *appId

Declared In

MLIMClient.h

  clientKey

(Required) The MaxLeap app’s clientKey.

@property (nonatomic, strong) NSString *clientKey

Declared In

MLIMClient.h

  installationId

(Optional) Should be set [MLInstallation currentInstallation].installationId. If not set, no offline push notification will be received.

@property (nullable, nonatomic, strong) NSString *installationId

Declared In

MLIMClient.h

  shouldLog

If YES socket will log debug messages. Default is NO.

@property (nonatomic) BOOL shouldLog

Declared In

MLIMClient.h

  autoReconnect

Whether to auto-reconnect on server lose. Default is YES.

@property (nonatomic) BOOL autoReconnect

Declared In

MLIMClient.h

  reconnectAttempts

How many times to auto-reconnect. Default is -1 (infinite tries).

@property (nonatomic) NSInteger reconnectAttempts

Declared In

MLIMClient.h

  reconnectWait

Amount of time to wait between auto-reconnects, in seconds. Default is 10s.

@property (nonatomic) NSInteger reconnectWait

Declared In

MLIMClient.h

  voipEnabled

Only use this option if you’re using the client with VoIP services. Changes the way the WebSocket is created. Default is NO.

@property (nonatomic) BOOL voipEnabled

Declared In

MLIMClient.h

+ defaultConfiguration

Creates a default configuration.

+ (instancetype)defaultConfiguration

Return Value

A new configuration.

Declared In

MLIMClient.h