MppAvailablePushMethod

@interface MppAvailablePushMethod : NSObject

Class describing available push methods.

MppAvailablePushMethod properties

  • The push method type of the URI. Issuer must respect specific rules when selecting the URI where they will send the consumer. Because mobile apps provide a better mobile experience than the web browsers, Issuers should always try and direct the consumer to iOS app of the Token Requestor, when possible.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *type;

    Return Value

    The push method type.

  • uri

    The URI to open the token requestor’s application or website.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *uri;

    Return Value

    The URI to open the token requestor’s application or website.

MppAvailablePushMethod methods

  • Constructs push method from values passed in dictionary.

    Declaration

    Objective-C

    + (nonnull instancetype)availablePushMethodWithDictionary:
        (NSDictionary *_Nonnull)dictionary;

    Parameters

    dictionary

    Dictionary containing type and uri to create a push method.

    Return Value

    Available push method.

  • Verify if given push method is valid.

    To pass verification, type and uri of the push method should be valid.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Return Value

    Bool value if given push method is valid.