MoEngageDataCenter
@objc
public enum MoEngageDataCenter : Int, CaseIterable, CustomStringConvertible
Data-center to which the moengage data should flow.
-
Declaration
Swift
case data_center_default
-
Declaration
Swift
case data_center_01
-
Declaration
Swift
case data_center_02
-
Declaration
Swift
case data_center_03
-
Declaration
Swift
case data_center_04
-
Declaration
Swift
case data_center_05
-
Declaration
Swift
case data_center_06
-
Initializes a MoEngageDataCenter from a file-based configuration data center.
This initializer converts from the configuration-time enum to the runtime enum that’s used throughout the SDK.
Declaration
Swift
public init(dataCenter: MoEngageFileBasedInitializationConfiguration.DataCenter)
Parameters
dataCenter
The data center from file-based configuration.
-
Method to fetch the MoEngageDataCenter from String
Note
Internal method. Do not use it explictly.Declaration
Swift
public static func getDataCenter(dataCenter: String) -> MoEngageDataCenter
Parameters
dataCenter
Raw value of data center
Return Value
MoEngageDataCenter