Skip to main content
Version: v2

getAppWidgetSize()

Start from API_LEVEL 2.0 . Please refer to API_LEVEL.

Get the system default shortcut card size for developers to layout the widget.

Type

() => result

result: object

ParameterDescriptionType
wShortcut card widthnumber
hshortcut card heightnumber
marginMargin of the shortcut card from the edge of the screennumber
radiusQuick Card Rounded Cornersnumber

Code example

import { getAppWidgetSize } from '@zos/ui'

const { w } = getAppWidgetSize()