Skip to content

Logout Entrustment-Logout through the Member Center (required) ​

作用 ​

This method is used for users to log out of their accounts and clear their login information. This method is an entrustment method. When users click to log out from the' Member Center', this method will be invoked. At this time, the SDK access party needs to implement the corresponding logout operation logic in this method, which is necessary. (It is generally recommended to return to the login screen.)

The place where this method is implemented is 'AppDelegate.M' file, because it was written when initializing the SDK agent function.

Function ​

'''Objective-c

  • (Void)gamedreamerNeedRelogin;

'''

Parameters ​

None

Callback ​

None

Example code ​

objective-c
- (void)gamedreamerNeedRelogin {

		//退出帳號代碼邏輯
}