OnNewIntentProvider
interface OnNewIntentProvider
ComponentActivity |
Base class for activities that enables composition of higher level components. |
AppCompatActivity |
Base class for activities that wish to use some of the newer platform features on older Android devices. |
BaseCarAppActivity |
Core logic for CarAppLibrary Activity interaction with a host. |
CarAppActivity |
The class representing a car app activity in the main display. |
FragmentActivity |
Base class for activities that want to use the support-based |
LauncherActivity |
This class handles providing the right launcher activity when running native applications and Car App Library applications. |
PreviewActivity |
Activity used to run |
Interface for components that can dispatch calls from Activity.onNewIntent.
Summary
Public functions |
|
|---|---|
Unit |
addOnNewIntentListener(listener: Consumer<Intent>)Add a new listener that will get a callback associated with |
Unit |
removeOnNewIntentListener(listener: Consumer<Intent>)Remove a previously added listener. |
Public functions
addOnNewIntentListener
fun addOnNewIntentListener(listener: Consumer<Intent>): Unit
Add a new listener that will get a callback associated with Activity.onNewIntent with the new Intent.
removeOnNewIntentListener
fun removeOnNewIntentListener(listener: Consumer<Intent>): Unit
Remove a previously added listener. It will not receive any future callbacks.
| Parameters | |
|---|---|
listener: Consumer<Intent> |
The listener previously added with |