UINavigationController

  • Presents an Account Details view controller. If showDisconnectButton is true, the view controller will show a button that, when tapped, presents a dialog asking the user whether to disconnect the currently used account. If the user decides to do so, the token for the account is removed from the SDK and the view controller performs an unwind segue called tradableBackToStart. Make sure to implement the segue in a view controller that is a starting point for the app (or otherwise makes sense to show while the SDK is non-working mode). Starts full updates if no metrics or full updates are running, or metrics updates if no updates are running at all.

    Declaration

    Swift

    @objc public func tradablePresentAccountDetails(for account: TradableAccount, showDisconnectButton: Bool = false)

    Parameters

    appId

    OAuth flow app ID.

    uri

    OAuth flow redirect URL.