ExtensionInterface.ExtensionCallback
Kotlin
|Java
public
static
interface
ExtensionInterface.ExtensionCallback
| androidx.window.extensions.ExtensionInterface.ExtensionCallback |
Callback that will be registered with the WindowManager library, and that the extension should use to report all state changes.
Summary
Public methods | |
|---|---|
abstract
void
|
onDeviceStateChanged(ExtensionDeviceState newDeviceState)
Called by extension when the device state changes. |
abstract
void
|
onWindowLayoutChanged(IBinder windowToken, ExtensionWindowLayoutInfo newLayout)
Called by extension when the feature layout inside the window changes. |
Public methods
onDeviceStateChanged
public abstract void onDeviceStateChanged (ExtensionDeviceState newDeviceState)
Called by extension when the device state changes.
| Parameters | |
|---|---|
newDeviceState |
ExtensionDeviceState |
onWindowLayoutChanged
public abstract void onWindowLayoutChanged (IBinder windowToken, ExtensionWindowLayoutInfo newLayout)
Called by extension when the feature layout inside the window changes.
| Parameters | |
|---|---|
windowToken |
IBinder |
newLayout |
ExtensionWindowLayoutInfo |