Package com. olo. olopay. bootstrap
Initializing the SDK
When the application starts, the Olo Pay SDK needs to be initialized by calling OloPayApiInitializer().setup()
. Classes in this package can help with the initialization.
It is recommended to do that early on to avoid any pitfalls with making SDK calls prior to initialization. This can be done by subclassing the Android Application and calling setup()
in onCreate()
. But if you don't already have a custom Application defined, there are other options for initialization defined in this package.
Both ApplicationInitializer
and ApplicationProvider
allow for initialization of the Olo Pay SDK (and any other SDK or library you are using) without subclassing the Application class. For more details, refer to the documentation for their respective classes.
Types
Convenience provider class to initialize the Olo Pay SDK without needing to create an Application subclass
Convenience provider class to initialize the Olo Pay SDK without needing to create an Application subclass