class IUserAccountManager
interface IUserAccountManager
Package: dji.v5.manager.interfaces
Description:
The class to manage user account. It is used to login and logout DJI account. When using chihiro network RTK, this interface should be called to login DJI account. Supported since MSDK 5.0.0
Class Members:
method getLoginInfo
@NonNull LoginInfo getLoginInfo ()
Package: dji.v5.manager.interfaces
Description:
Get current login information, including login status and login account. Supported since MSDK 5.0.0
Return:
method logInDJIUserAccount
void logInDJIUserAccount (FragmentActivity fragmentActivity, boolean isFullScreen, @Nullable CommonCallbacks.CompletionCallback callback)
Package: dji.v5.manager.interfaces
Description:
Login the DJI account. When the LoginState
is NOT_LOGGED_IN
or TOKEN_OUT_OF_DATE
, this interface should be called to login account. Supported since MSDK 5.0.0
FragmentActivity fragmentActivity fragmentActivity boolean isFullScreen true
means that display the login box in full screen.@Nullable CommonCallbacks .CompletionCallback callback Return the callback of execution result.
method logOutDJIUserAccount
void logOutDJIUserAccount (@Nullable CommonCallbacks.CompletionCallback callback)
Package: dji.v5.manager.interfaces
Description:
Logout the DJI account. Supported since MSDK 5.0.0
method addLoginInfoUpdateListener
void addLoginInfoUpdateListener (@NonNull LoginInfoUpdateListener listener)
Package: dji.v5.manager.interfaces
Description:
Add the listener of login information. Supported since MSDK 5.0.0
method removeLoginInfoUpdateListener
void removeLoginInfoUpdateListener (@NonNull LoginInfoUpdateListener listener)
Package: dji.v5.manager.interfaces
Description:
Remove the listener of login information. Supported since MSDK 5.0.0
method clearAllLoginInfoUpdateListener
void clearAllLoginInfoUpdateListener ()
Package: dji.v5.manager.interfaces
Description:
Remove all the listener of login information. Supported since MSDK 5.0.0
enum LoginState
Package: dji.v5.manager.account
Description:
Login status.
Supported since MSDK 5.0.0
Enum Members:
NOT_LOGGED_INNot logged in. LOGGED_INLogged in. TOKEN_OUT_OF_DATELogin expired.
Class Members: