BTDropInBaseViewController
Objective-C
@interface BTDropInBaseViewController : UIViewController
Swift
class BTDropInBaseViewController : UIViewController
The base UIViewController for the sub UIViewControllers using in Drop-In
-
Initialize a new Drop-in view controller.
Declaration
Objective-C
- (nonnull instancetype)initWithAPIClient:(nonnull BTAPIClient *)apiClient request:(nonnull BTDropInRequest *)request;
Swift
init(apiClient: BTAPIClient, request: BTDropInRequest)
Parameters
apiClient
A BTAPIClient used for communicating with Braintree servers. Required.
Return Value
A new Drop-in view controller that is ready to be presented.
-
The API Client used for communication with Braintree servers.
Declaration
Objective-C
@property (nonatomic, strong) BTAPIClient *_Nonnull apiClient;
Swift
var apiClient: BTAPIClient { get set }
-
The BTConfiguration, set during loadConfiguration.
Declaration
Objective-C
@property (nonatomic, strong, nullable) BTConfiguration *configuration;
Swift
var configuration: BTConfiguration? { get set }
-
Subclasses should override this method to be notified when the configuration is loaded
Declaration
Objective-C
- (void)configurationLoaded:(nonnull BTConfiguration *)configuration error:(nonnull NSError *)error;
Swift
func configurationLoaded(_ configuration: BTConfiguration, error: Error)
-
Load the configuration and then call
configurationLoaded:error:
Declaration
Objective-C
- (void)loadConfiguration;
Swift
func loadConfiguration()
-
The BTDropInRequest that defines the Drop-in experience.
The properties of this payment request are used to customize Drop-in.
Declaration
Objective-C
@property (nonatomic, strong, nullable) BTDropInRequest *dropInRequest;
Swift
var dropInRequest: BTDropInRequest? { get set }
-
Displays an overlay loading screen
Declaration
Objective-C
- (void)showLoadingScreen:(BOOL)show;
Swift
func showLoadingScreen(_ show: Bool)
Parameters
show
Modifies the hidden property of the overlay