init
Initializes the SDK. This should be called only once globally within the application. It is recommended to call this method in the Application subclass.
Since
5.0.0
Deprecated
This method is deprecated. Please use init instead.
Parameters
The Context of the Application class.
Throws
Thrown when the parameter is invalid.
Initializes the SDK. This should be called only once globally within the application, preferably in the Application subclass.
Since
5.0.0
Deprecated
This method is deprecated. Please use init instead.
Parameters
The Context of the Application class.
The App Key obtained after creating an application on the RCdeveloper platform.
This parameter is optional. If not provided, the SDK will use the RONG_CLOUD_APP_KEY configured in the AndroidManifest.xml.<meta-data android:name=RONG_CLOUD_APP_KEY android:value=****** />
Throws
Thrown when the parameters are invalid.
Initializes the SDK. This method should be called only once globally in the application, preferably in the Application subclass.
Since
5.0.0
Deprecated
This method is deprecated. Please use init instead.
Parameters
The Context of the Application class.
The App Key obtained after creating an application on the RCdeveloper platform.
This parameter is optional. If not provided, the SDK will use the RONG_CLOUD_APP_KEY configured in AndroidManifest.xml.<meta-data android:name=RONG_CLOUD_APP_KEY android:value=****** />
Specifies whether to enable push notification. true
to enable; false
to disable.
Throws
Thrown if the parameters are invalid.
Initializes the SDK. This should be called only once globally in the application. It is recommended to call this in the Application inherited class.
Since
5.1.3
Deprecated
This method is deprecated. Please use init
Parameters
The Context of the Application class.
The App Key obtained after creating an application on the RCDeveloper Platform.
This parameter is optional. If no value is passed, the SDK will use the RONG_CLOUD_APP_KEY configured in the AndroidManifest.xml.<meta-data android:name=RONG_CLOUD_APP_KEY android:value=****** />
Whether to enable push notifications. true
to enable push;
false
to disable push.
Throws
Thrown if the parameters are invalid.
Initializes the SDK. This should be called only once globally in the application.
Since
5.3.4
Parameters
The Context of the Application class.
The App Key obtained after creating an application on the RCdeveloper platform.
This parameter is optional. If not provided, the SDK will use the RONG_CLOUD_APP_KEY configured in the AndroidManifest.xml.* <meta-data android:name=RONG_CLOUD_APP_KEY android:value=****** />
The configuration information required for initialization. For details, refer to InitOption