| // Signature format: 4.0 |
| package androidx.window.extensions { |
| |
| public class WindowLibraryInfo { |
| method public static androidx.window.extensions.WindowLibraryInfo getInstance(android.content.Context); |
| method public int getVendorApiLevel(); |
| } |
| |
| } |
| |
| package androidx.window.extensions.layout { |
| |
| public interface DisplayFeature { |
| method public android.graphics.Rect getBounds(); |
| } |
| |
| public class FoldingFeature implements androidx.window.extensions.layout.DisplayFeature { |
| ctor public FoldingFeature(android.graphics.Rect, int, int); |
| method public android.graphics.Rect getBounds(); |
| method public int getState(); |
| method public int getType(); |
| field public static final int STATE_FLAT = 1; // 0x1 |
| field public static final int STATE_HALF_OPENED = 2; // 0x2 |
| field public static final int TYPE_FOLD = 1; // 0x1 |
| field public static final int TYPE_HINGE = 2; // 0x2 |
| } |
| |
| public interface WindowLayoutComponent { |
| method public void addWindowLayoutInfoListener(android.app.Activity, java.util.function.Consumer<androidx.window.extensions.layout.WindowLayoutInfo!>); |
| method public static androidx.window.extensions.layout.WindowLayoutComponent? getInstance(android.content.Context); |
| method public void removeWindowLayoutInfoListener(java.util.function.Consumer<androidx.window.extensions.layout.WindowLayoutInfo!>); |
| } |
| |
| public class WindowLayoutComponentProvider { |
| method public static androidx.window.extensions.layout.WindowLayoutComponent getWindowLayoutComponent(android.content.Context); |
| method public static boolean isWindowLayoutComponentAvailable(); |
| } |
| |
| public class WindowLayoutInfo { |
| ctor public WindowLayoutInfo(java.util.List<androidx.window.extensions.layout.DisplayFeature!>); |
| method public java.util.List<androidx.window.extensions.layout.DisplayFeature!> getDisplayFeatures(); |
| } |
| |
| } |
| |