UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

33 lines (32 loc) • 1.56 kB
/** * Internal helper for the `androidOverflowEdge` property. Kept out of index.android.ts * so the parsing can be unit tested without pulling the whole view stack in. * * The values mirror org.nativescript.widgets.LayoutBase. */ export declare const OverflowEdgeIgnore = -1; export declare const OverflowEdgeNone = 0; export declare const OverflowEdgeLeft: number; export declare const OverflowEdgeTop: number; export declare const OverflowEdgeRight: number; export declare const OverflowEdgeBottom: number; export declare const OverflowEdgeDontApply: number; export declare const OverflowEdgeLeftDontConsume: number; export declare const OverflowEdgeTopDontConsume: number; export declare const OverflowEdgeRightDontConsume: number; export declare const OverflowEdgeBottomDontConsume: number; export declare const OverflowEdgeAllButLeft: number; export declare const OverflowEdgeAllButTop: number; export declare const OverflowEdgeAllButRight: number; export declare const OverflowEdgeAllButBottom: number; /** * Not an edge: a modifier that folds the display cutout into the insets being * distributed. Type.systemBars() leaves the cutout out, which only shows up once the * device is rotated and the camera moves to an edge that has no bar. */ export declare const OverflowEdgeCutout: number; /** * Turns a comma separated `androidOverflowEdge` value into the flags LayoutBase expects. * Returns null when nothing in the value was recognized, which means "leave the view alone". */ export declare function parseEdges(edges: string): number | null;