init
Initializes the RCSDK. This should be called only once globally throughout the application.
This method must be called in the main process. It is recommended to call it in the Application inherited class.
Deprecated
This method is deprecated. Please use init instead.
Parameters
The Application class object.
The App Key obtained after creating an application on the RCDeveloper Platform.
Initializes the SDK. This should be called only once globally in the application, preferably in the Application inherited class.
Deprecated
This method is deprecated. Please use init instead.
Parameters
The Context of the Application class.
Initializes the SDK. This should be called only once globally in the application. It is recommended to call this in the Application subclass.
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=****** />
Initializes the SDK. This should be called only once globally in the application. It is recommended to call this in the Application subclass.
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 no value is 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=****** />
Whether to enable push notification. true
to enable push;
false
to disable push.
Initializes the SDK. This should be called only once globally throughout the application. It is recommended to call this in the Application subclass.
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 no value is passed, the SDK will use the RONG_CLOUD_APP_KEY configured in AndroidManifest.xml.<meta-data android:name=RONG_CLOUD_APP_KEY android:value=****** />
Whether to enable push notifications. true
enables push;
false
disables push.
Whether it is the main process. If null, the SDK will determine the process.