DXLoginButton

Subclass of UIButton that when tapped will initiate the SSO flow.

public final class DXLoginButton: UIButton

After calling the isAuthenticated method on DXAuthClient, if a user is not currently authenticated, you will need to begin SSO flow by presenting a view controller that has a DXLoginButton instance attached as a subview. When tapped, it will present the DX login screen.

Methods

init

public init(
    from viewController: UIViewController? = nil, 
    image: DXLoginButtonImage
)

Initialize an instance of DXLoginButton.

Parameter

Type

Description

from

UIViewController?

An optional instance of a UIViewController to present the login screen.

image

DXLoginButtonImage

The DXLoginButtonImage that will be used for the button's image.

Last updated