public interface ReaderManager
Modifier and Type | Method and Description |
---|---|
CallbackReference |
addReaderSettingsActivityCallback(ReaderSettingsActivityCallback callback)
Adds a callback to handle the result of the reader settings flow.
|
void |
startReaderSettingsActivity(android.content.Context context)
Starts an activity for connecting and managing Square Readers.
|
void startReaderSettingsActivity(@NonNull android.content.Context context)
Starts an activity for connecting and managing Square Readers.
Reader SDK must be authorized to start the reader settings activity.
Add a ReaderSettingsActivityCallback
with
addReaderSettingsActivityCallback(ReaderSettingsActivityCallback)
to handle the
result of the reader settings flow.
This method must be called from the main thread.
context
- An activity instance from which to start the reader settings activity.@NonNull CallbackReference addReaderSettingsActivityCallback(@NonNull ReaderSettingsActivityCallback callback)
Adds a callback to handle the result of the reader settings flow.
The callback is executed on the main thread.
callback
- The reader settings callback to be added.CallbackReference
. To avoid memory leaks, clear the callback reference with
CallbackReference.clear()
any time a lifecycle destroy event occurs (e.g. Activity.onDestroy()
).startReaderSettingsActivity(Context)