Alipay+ DocsAlipay+ Docs

disConnect

Call the disConnect API to disassociate the SDK from the signed-in user.

Note:

  • disConnect returns the SDK to the initialized state. Registered plugins and listeners are retained.
  • Use disConnect instead of destroy when a user session expires but you do not need to release registered plugins and listeners.

Method signature

copy
boolean disConnect();

Request parameters

N/A

Response parameters

Item

Type

Description

Required

result

Boolean

Always returns true, regardless of whether the SDK was connected. The return value does not indicate whether a disconnection was actually performed.

Yes

Sample

copy
manager = ACTapManager.getInstance(this.getApplication());
boolean disconnected = manager.disConnect();