RLMAppConfiguration
Objective-C
@interface RLMAppConfiguration : NSObject
Swift
class RLMAppConfiguration : NSObject
Properties representing the configuration of a client that communicate with a particular Realm application.
-
A custom base URL to request against.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *baseURL;
Swift
var baseURL: String? { get set }
-
The custom transport for network calls to the server.
Declaration
Objective-C
@property (nonatomic, strong, nullable) id<RLMNetworkTransport> transport;
-
A custom app name.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *localAppName;
Swift
var localAppName: String? { get set }
-
A custom app version.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *localAppVersion;
Swift
var localAppVersion: String? { get set }
-
The default timeout for network requests.
Declaration
Objective-C
@property (nonatomic) NSUInteger defaultRequestTimeoutMS;
Swift
var defaultRequestTimeoutMS: UInt { get set }
-
Create a new Realm App configuration.
Declaration
Objective-C
- (nonnull instancetype)initWithBaseURL:(nullable NSString *)baseURL transport: (nullable id<RLMNetworkTransport>)transport localAppName:(nullable NSString *)localAppName localAppVersion:(nullable NSString *)localAppVersion;
Parameters
baseURL
A custom base URL to request against.
transport
A custom network transport.
localAppName
A custom app name.
localAppVersion
A custom app version.
-
Create a new Realm App configuration.
Declaration
Objective-C
- (nonnull instancetype)initWithBaseURL:(nullable NSString *)baseURL transport: (nullable id<RLMNetworkTransport>)transport localAppName:(nullable NSString *)localAppName localAppVersion:(nullable NSString *)localAppVersion defaultRequestTimeoutMS:(NSUInteger)defaultRequestTimeoutMS;
Parameters
baseURL
A custom base URL to request against.
transport
A custom network transport.
localAppName
A custom app name.
localAppVersion
A custom app version.
defaultRequestTimeoutMS
A custom default timeout for network requests.