Returns whether a component exists for the specified code
Hide a UI component once it is ready. For bundled components, this requires them to have been configured in batchSDK.setup()
Register a new component for the specified code.
Unique code for your UI component.
Init method of your component: Batch will call you back on it.
Register a new component for the specified code, after waiting for other components to have been registered
Components to wait for before calling this one's init method.
Unique code for your UI component.
Init method of your component: Batch will call you back on it.
Show a UI component once it is ready. For bundled components, this requires them to have been configured in batchSDK.setup()
Some components will refuse to show even when calling this method because it might not make sense. For example, the banner will not honor the request if it has been dismissed recently (unless configured otherwise) or if the user is already subscribed to notifications.
You can try to set the force parameter to true, asking it to display itself no matter what.
If you call this method, you probably want to set "autoShow": false in your UI component configuration
Shows the current user's identifiers inside the current page
Returns a promise that is resolved when the specified UI component has been drawn, returning the wrapped component.
Returns a registered component The component may not be fully ready.