IDialogpublic class DisplayDialog extends BaseDialog
This class is used for content projection on multiple windows on different screens.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
DisplayDialog.DialogProvider |
Encapsulates the information about a remote screen,
including its height, width, IP address, port, and density in DPI.
|
BaseDialog.DialogListener, BaseDialog.DisplayCallback, BaseDialog.RemoveCallbackIDialog.CheckBoxClickedListener, IDialog.ClickedListener, IDialog.ItemClickedListener, IDialog.KeyboardCallbackBUTTON_NUM, BUTTON1, BUTTON2, BUTTON3, DEF_RADIUS, ICON_NUM, ICON1, ICON2, ICON3| 构造器 | 说明 |
|---|---|
DisplayDialog(Context context) |
A constructor used to create a
DisplayDialog dialog based on the input context. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
setContentComponent(DirectionalLayout component) |
Sets the layout for a dialog box.
|
void |
showOnRemoteScreen(DisplayDialog.DialogProvider dialogProvider) |
Displays a dialog box on a remote screen.
|
create, destroy, hide, isShowing, obtainComponentViaId, onCreate, onDestroy, onHide, onShow, onShowing, registerDisplayCallback, registerRemoveCallback, remove, searchComponentViaId, setAlignment, setAutoClosable, setCornerRadius, setDialogListener, setDuration, setOffset, setSize, setTransparent, showpublic DisplayDialog(Context context)
DisplayDialog dialog based on the input context.context - Indicates the ohos context.public void setContentComponent(DirectionalLayout component)
component - Indicates the layout of the dialog box.public void showOnRemoteScreen(DisplayDialog.DialogProvider dialogProvider)
dialogProvider - Indicates the remote screen.