Batch
class Batch
Entry point of the Batch library
Types
Properties
Link copied to clipboard
val ACTION_REGISTRATION_IDENTIFIER_OBTAINED: String = "com.batch.android.intent.action.push.REGISTRATION_IDENTIFIER_OBTAINED"
Intent broadcasted locally by the SDK when a push registration identifier has been retrieved (also called "Push Token").
Link copied to clipboard
Permission suffix for broadcasts triggered by Batch.
Link copied to clipboard
Extra containing the Registration Identifier for a ACTION_REGISTRATION_IDENTIFIER_OBTAINED broadcast
Link copied to clipboard
Extra containing the Registration Provider name for a ACTION_REGISTRATION_IDENTIFIER_OBTAINED broadcast
Link copied to clipboard
Extra containing the Sender ID (if any) for a ACTION_REGISTRATION_IDENTIFIER_OBTAINED broadcast
Link copied to clipboard
Notification tag.
Functions
Link copied to clipboard
Copy Batch's internal data from an intent to another.
Copy Batch's internal data from intent extras to another bundle.
Link copied to clipboard
Set data migrations you want to disable.
Link copied to clipboard
Get the broadcast permission name.
Link copied to clipboard
Returns whether Batch has been opted out from or not Warning: This method might perform some quick I/O in the caller thread.
Link copied to clipboard
Method to call on your main activity onNewIntent Calling this method if Batch is already stopped or not started will do nothing
Link copied to clipboard
Method to call on your service onCreate to start Batch.
Link copied to clipboard
Method to call on your service onDestroy to stop Batch.
Link copied to clipboard
open fun optOutAndWipeData(@NonNull context: Context, @Nullable listener: BatchOptOutResultListener)
Opt Out from Batch SDK Usage.
Link copied to clipboard
Control whether Batch should enables the Find My Installation feature (default = true) If enabled Batch will copy the current installation id in the clipboard when the application is foregrounded 5 times within 12 seconds.
Link copied to clipboard
Set if Batch should send its logs to an object of yours (default = null) Be careful with your implementation: setting this can impact stability and performance You should only use it if you know what you are doing.
Link copied to clipboard
Set the log level that Batch should use
Link copied to clipboard
Configure the SDK Automatic Data Collection.