Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

ExtensionInterface

public interface ExtensionInterface

androidx.window.extensions.ExtensionInterface


Main Extension interface definition that will be used by the WindowManager library to get custom OEM-provided information that isn't covered by platform APIs.

This interface should be implemented by OEM and deployed to the target devices.

See also:

Summary

Nested classes

interface ExtensionInterface.ExtensionCallback

Callback that will be registered with the WindowManager library, and that the extension should use to report all state changes. 

Public methods

abstract ExtensionDeviceState getDeviceState()

Get current device state.

abstract ExtensionWindowLayoutInfo getWindowLayoutInfo(IBinder windowToken)

Get current information about the display features present within the application window.

abstract void onDeviceStateListenersChanged(boolean isEmpty)

Notify the extension that a device state change listener was updated.

abstract void onWindowLayoutChangeListenerAdded(IBinder windowToken)

Notify extension that a listener for display feature layout changes was registered for the given window token.

abstract void onWindowLayoutChangeListenerRemoved(IBinder windowToken)

Notify extension that a listener for display feature layout changes was removed for the given window token.

abstract void setExtensionCallback(ExtensionInterface.ExtensionCallback callback)

Register the support library as the callback for the extension.

Public methods

getDeviceState

public abstract ExtensionDeviceState getDeviceState ()

Get current device state.

Returns
ExtensionDeviceState

getWindowLayoutInfo

public abstract ExtensionWindowLayoutInfo getWindowLayoutInfo (IBinder windowToken)

Get current information about the display features present within the application window.

Parameters
windowToken IBinder

Returns
ExtensionWindowLayoutInfo

onDeviceStateListenersChanged

public abstract void onDeviceStateListenersChanged (boolean isEmpty)

Notify the extension that a device state change listener was updated.

Parameters
isEmpty boolean: flag indicating if the list of device state change listeners is empty.

onWindowLayoutChangeListenerAdded

public abstract void onWindowLayoutChangeListenerAdded (IBinder windowToken)

Notify extension that a listener for display feature layout changes was registered for the given window token.

Parameters
windowToken IBinder

onWindowLayoutChangeListenerRemoved

public abstract void onWindowLayoutChangeListenerRemoved (IBinder windowToken)

Notify extension that a listener for display feature layout changes was removed for the given window token.

Parameters
windowToken IBinder

setExtensionCallback

public abstract void setExtensionCallback (ExtensionInterface.ExtensionCallback callback)

Register the support library as the callback for the extension. This interface will be used to report all extension changes to the support library.

Parameters
callback ExtensionInterface.ExtensionCallback