SCPSimulatedCollectInputsResultSucceeded
Objective-C
@interface SCPSimulatedCollectInputsResultSucceeded
: SCPSimulatedCollectInputsResult
Swift
class SimulatedCollectInputsResultSucceeded : SimulatedCollectInputsResult
Simulate a successful collect inputs
Based on the input type, the SDK returns a predefined value. The predefined values are:
- selection -> (value of first option)
- signature -> (a valid SVG image string)
- email -> “someone@example.com”
- phone -> “+15555551234”
- text -> “Jane Doe”
- numeric -> “2907981236”
If any toggles are specified, their default value is selected and returned.
-
The skip behavior to use while simulating a successful input collection.
Declaration
Objective-C
@property (nonatomic) SCPSimulatedCollectInputsSkipBehavior simulatedCollectInputsSkipBehavior;
Swift
var simulatedCollectInputsSkipBehavior: SimulatedCollectInputsSkipBehavior { get set }
-
Initializes a new instance of the
SCPSimulatedCollectInputsResultSucceeded
class with the provided skip behavior.Declaration
Objective-C
- (nonnull instancetype)initWithSimulatedCollectInputsSkipBehavior: (SCPSimulatedCollectInputsSkipBehavior)skipBehavior;
Swift
init(simulatedCollectInputsSkipBehavior skipBehavior: SimulatedCollectInputsSkipBehavior)
Parameters
skipBehavior
The skip behavior to use while simulating input collection.
-
Unavailable
You cannot instantiate this class without specifying a skip behavior
Declaration
Objective-C
+ (nonnull instancetype)new;
-
Unavailable
You cannot instantiate this class without specifying a skip behavior
Declaration
Objective-C
- (nonnull instancetype)init;