GooglePayPaymentMethodLauncher

Constructor to be used when launching GooglePayPaymentMethodLauncher from an Activity. This constructor must be called no later than Activity#onCreate().

Parameters

activity

the Activity that is launching the GooglePayPaymentMethodLauncher

readyCallback

called after determining whether Google Pay is available and ready on the device. present may only be called if Google Pay is ready.

resultCallback

called with the result of the GooglePayPaymentMethodLauncher operation


Constructor to be used when launching GooglePayPaymentMethodLauncher from a Fragment. This constructor must be called no later than Fragment#onViewCreated().

Parameters

fragment

the Fragment that is launching the GooglePayPaymentMethodLauncher

readyCallback

called after determining whether Google Pay is available and ready on the device. present may only be called if Google Pay is ready.

resultCallback

called with the result of the GooglePayPaymentMethodLauncher operation