onDestroy()

The onDestroy() method is used to destroy the instance and release all associated resources.

Declaration

copy
- (void)onDestroy;

Parameters

This method takes no input parameters.

Return value

This method does not return any value.

Usage scenarios

Manual call

In the following cases, call the onDestory() method to release SDK component resources:

Automatic release

In the following cases, you do not need to call the the the onDestory() method, SDK automatically releases resources: