RecaptchaAction
@interface RecaptchaAction : NSObject
Action intended to be protected by reCAPTCHA. This object should be passed to RecaptchaClient.execute.
-
Creates an object with a custom action from a String.
Declaration
Swift
init(customAction: String)
Objective-C
- (instancetype _Nonnull)initWithCustomAction:(NSString *_Nonnull)customAction;
-
Indicates that the protected action is a Login workflow.
Declaration
Swift
class var login: RecaptchaAction { get }
Objective-C
@property (class, nonatomic, readonly) RecaptchaAction *_Nonnull login;
-
Indicates that the protected action is a Signup workflow.
Declaration
Swift
class var signup: RecaptchaAction { get }
Objective-C
@property (class, nonatomic, readonly) RecaptchaAction *_Nonnull signup;
-
A String representing the action.
Declaration
Swift
var action: String { get }
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull action;
-
Action that is intended for reCAPTCHA to protect.
Declaration
Swift
var actionType: RecaptchaActionType { get }
Objective-C
@property (nonatomic, readonly) RecaptchaActionType actionType;
-
Extra parameters to send during call to execute.
Declaration
Swift
var extraParameters: [AnyHashable : Any]? { get }
Objective-C
@property (nonatomic, readonly) NSDictionary *_Nullable extraParameters;
-
Creates an object with a predefined reCAPTCHA action.
Declaration
Swift
init(action: RecaptchaActionType)
Objective-C
- (instancetype _Nonnull)initWithAction:(RecaptchaActionType)action;
-
A customized action.
Declaration
Swift
var customAction: String { get }
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull customAction;
-
Creates an object with a predefined reCAPTCHA action and extra parameters.
Declaration
Swift
init(action: RecaptchaActionType, extraParameters: [String : String]?)
Objective-C
- (instancetype _Nonnull)initWithAction:(RecaptchaActionType)action extraParameters: (NSDictionary<NSString *, NSString *> *_Nullable) extraParameters;
-
Creates an object with a custom action from a String and extra parameters.
Declaration
Swift
init(customAction: String, extraParameters: [String : String]?)
Objective-C
- (instancetype _Nonnull) initWithCustomAction:(NSString *_Nonnull)customAction extraParameters: (NSDictionary<NSString *, NSString *> *_Nullable)extraParameters;