PlayPortalLoginButton

Subclass of UIButton that when tapped will initiate the SSO flow.
public final class PlayPortalLoginButton: UIButton

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

Methods

init

public init(from viewController: UIViewController? = nil, image: PlayPortalLoginButtonImage = .default)

Initialize an instance of PlayPortalLoginButton.

Parameter

Type

Description

from

UIViewController?

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

image

PlayPortalLoginButtonImage

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