vsping - 国外主机测评,国外VPS,国外服务器,国外云服务器,测评及优惠码vsping - 国外主机测评,国外VPS,国外服务器,国外云服务器,测评及优惠码国外主机测评 - 国外VPS,国外服务器,国外云服务器,测评及优惠码

鸿蒙OS NotificationConstant

NotificationConstant java.lang.Object |—ohos.event.notification.NotificationConstant public final class NotificationConstant extends Object 提供静态常量来指示通知删除原因。 常量是调用 NotificationSubscriber#onCanceled(NotificationRequest, NotificationSortingMap, int) 时使用的 int 参数。 Since: 2 嵌套类摘要 修饰符和类型 类 描述 static class NotificationConstant.DisturbMode 枚举免打扰模式的类型。 static class NotificationConstant.InputEditType 枚举在通知中提供给用户的选项的编辑类型。 static class NotificationConstant.InputsSource 枚举用户输入源。 static class NotificationConstant.SemanticActionButton 枚举触发 NotificationActionButton 时关联的 IntentAgent 将采取的操作。 字段摘要 修饰符和类型 字段 描述 static int APP_CANCEL_ALL_REASON_DELETE 表示由于应用程序取消了所有通知而删除了通知。 static int APP_CANCEL_REASON_DELETE 表示由于应用程序取消通知而删除通知。 static int APP_CANCEL_REASON_OTHER 表示通知因其他原因被删除。 static int CANCEL_ALL_REASON_DELETE 表示由于用户清除所有通知而删除通知。 static int CANCEL_REASON_DELETE 表示通知因用户清除而被删除。 static int CLICK_REASON_DELETE 表示通知因为被点击而被删除。 static int ERROR_REASON_DELETE 指示由于 UI 错误而删除通知。 static String EXTRA_INPUTS_SOURCE 键表示输入源。 static int PACKAGE_BANNED_REASON_DELETE 表示由于应用程序被禁止发送通知而删除通知。 static int PACKAGE_CHANGED_REASON_DELETE 表示由于对应用程序进行了更改而删除了通知。 static int USER_STOPPED_REASON_DELETE 指示由于应用程序上下文已停止而删除通知。 方法总结 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 字段详细信息 APP_CANCEL_ALL_REASON_DELETE public static final int APP_CANCEL_ALL_REASON_DELETE 表示由于应用程序取消了所有通知而删除了通知。 APP_CANCEL_REASON_DELETE public static final int APP_CANCEL_REASON_DELETE 表示由于应用程序取消通知而删除通知。 APP_CANCEL_REASON_OTHER public static final int APP_CANCEL_REASON_OTHER 表示通知因其他原因被删除。 CANCEL_ALL_REASON_DELETE public static final int CANCEL_ALL_REASON_DELETE 表示由于用户清除所有通知而删除通知。 CANCEL_REASON_DELETE public static final int CANCEL_REASON_DELETE 表示通知因用户清除而被删除。 CLICK_REASON_DELETE public static final int CLICK_REASON_DELETE 表示通知因为被点击而被删除。...

优惠码

鸿蒙OS NotificationActionButton.Builder

NotificationActionButton.Builder java.lang.Object |—ohos.event.notification.NotificationActionButton.Builder public static final class NotificationActionButton.Builder extends Object NotificationActionButton 对象的生成器类。 Since: 3 构造函数摘要 构造函数 描述 Builder(NotificationActionButton actionButton) 用于通过从现有 NotificationActionButton 对象复制参数来创建 Builder 实例的构造函数。 Builder(PixelMap icon, String title, IntentAgent intentAgent) 用于创建具有指定图标、标题和 IntentAgent 的 Builder 实例的构造函数,用于创建 NotificationActionButton 对象。 方法总结 修饰符和类型 方法 描述 NotificationActionButton.Builder addAdditionalData(PacMap pacMap) 将附加数据添加到此 Builder。 NotificationActionButton.Builder addNotificationUserInput(NotificationUserInput userInput) 添加用于收集用户输入的 NotificationUserInput 对象。 NotificationActionButton build() 使用所有设置创建一个新的 NotificationActionButton 对象。 NotificationActionButton.Builder setAutoCreatedReplies(boolean autoCreatedReplies) 设置是否允许平台自动生成可能的回复并将其添加到 NotificationUserInput#getOptions()。 NotificationActionButton.Builder setContextDependent(boolean isContextual) 设置此 NotificationActionButton 是否为上下文动作,即此 NotificationActionButton 是否依赖于通知消息体。 NotificationActionButton.Builder setSemanticActionButton(NotificationConstant.SemanticActionButton semanticActionButton) 为此 NotificationActionButton 设置语义操作。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 构造函数详细信息 Builder public Builder(PixelMap icon, String title, IntentAgent intentAgent) 用于创建具有指定图标、标题和 IntentAgent 的 Builder 实例的构造函数,用于创建 NotificationActionButton 对象。 参数: 参数名称 参数描述 icon 指示表示此 NotificationActionButton 的图标。 title 指示此 NotificationActionButton 的标题。 intentAgent 指示触发此 NotificationActionButton 时要触发的 IntentAgent。 Since: 3 Builder public Builder(NotificationActionButton actionButton) 用于通过从现有 NotificationActionButton 对象复制参数来创建 Builder 实例的构造函数。 参数: 参数名称 参数描述 actionButton 指示现有的 NotificationActionButton 对象。 Since: 3 方法详情 addNotificationUserInput public NotificationActionButton.Builder addNotificationUserInput(NotificationUserInput userInput) 添加用于收集用户输入的 NotificationUserInput 对象。 参数: 参数名称 参数描述 userInput 指示要添加的 NotificationUserInput 对象。 返回: 返回此 Builder 对象。 Since: 3 setContextDependent public NotificationActionButton.Builder setContextDependent(boolean isContextual) 设置此 NotificationActionButton 是否为上下文动作,即此 NotificationActionButton 是否依赖于通知消息体。...

优惠码

鸿蒙OS NotificationActionButton

NotificationActionButton java.lang.Object |—ohos.event.notification.NotificationActionButton public class NotificationActionButton extends Object implements Sequenceable 封装要在通知中显示的操作按钮。 您可以调用 NotificationRequest#addActionButton 将操作按钮添加到通知。 NotificationActionButton 对象必须包含一个图标、一个标题和一个关联的 IntentAgent,定义了单击操作按钮时要触发的操作。 Since: 3 嵌套类摘要 修饰符和类型 类 描述 static class NotificationActionButton.Builder NotificationActionButton 对象的生成器类。 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static Sequenceable.ProducerNotificationActionButton PRODUCER 从 Parcel 创建 NotificationActionButton 实例。 方法总结 修饰符和类型 方法 描述 PacMap getAdditionalData() 获取包含在此 NotificationActionButton 中的附加数据。 PixelMap getIcon() 获取此 NotificationActionButton 的图标。 IntentAgent getIntentAgent() 获取此 NotificationActionButton 的 IntentAgent。 ListNotificationUserInput getMimeTypeOnlyUserInputs() 在发送此 NotificationActionButton 时,获取仅允许特定 MIME 类型的值的 NotificationUserInput 对象。 int getSemanticActionButton() 获取此 NotificationActionButton 的语义操作。 String getTitle() 获取此 NotificationActionButton 的标题。 ListNotificationUserInput getUserInputs() 获取发送此 NotificationActionButton 时向用户收集的 NotificationUserInput 对象。 boolean isAutoCreatedReplies() 检查平台是否可以自动为此 NotificationActionButton 生成可能的回复。 boolean isContextDependent() 检查此 NotificationActionButton 是否为上下文操作,即此 NotificationActionButton 是否依赖于通知消息体。 boolean marshalling(Parcel out) 将 NotificationActionButton 对象编组到 Parcel 中。 String toString() 返回对象的字符串表示形式。 boolean unmarshalling(Parcel in) 从 Parcel 中解组 NotificationActionButton 对象。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详细信息 PRODUCER public static final Sequenceable.ProducerNotificationActionButton PRODUCER 从 Parcel 创建 NotificationActionButton 实例。 Since: 4 方法详情 getIcon public PixelMap getIcon() 获取此 NotificationActionButton 的图标。 返回: 返回此 NotificationActionButton 的图标。 Since: 3 getAdditionalData public PacMap getAdditionalData() 获取包含在此 NotificationActionButton 中的附加数据。...

优惠码

鸿蒙OS MessageUser

MessageUser java.lang.Object |—ohos.event.notification.MessageUser public final class MessageUser extends Object implements Sequenceable 表示可由 NotificationRequest、NotificationRequest.NotificationConversationalContent 和 NotificationRequest.NotificationConversationalContent.ConversationalMessage 使用的消息发送方。 Since: 3 嵌套类摘要 从接口 ohos.utils.Sequenceable 继承的嵌套类/接口 Sequenceable.ProducerT 字段摘要 修饰符和类型 字段 描述 static Sequenceable.ProducerMessageUser PRODUCER 从 Parcel 创建 MessageUser 实例。 构造函数摘要 构造函数 描述 MessageUser() 方法总结 修饰符和类型 方法 描述 String getKey() 获取此 MessageUser 的密钥。 String getName() 获取此 MessageUser 的名称。 PixelMap getPixelMap() 获取此 MessageUser 的像素图。 String getUri() 获取此 MessageUser 的 URI。 boolean isMachine() 检查此 MessageUser 是否为机器。 boolean isUserImportant() 检查此 MessageUser 是否重要。 boolean marshalling(Parcel out) 将此 Message User 对象编组到 Parcel 中。 MessageUser setKey(String key) 设置用于唯一标识此 MessageUser 的密钥。 MessageUser setMachine(boolean machine) 设置此 MessageUser 是否为机器。 MessageUser setName(String name) 设置此 MessageUser 的名称。 MessageUser setPixelMap(PixelMap pixelMap) 设置此 MessageUser 的像素图。 MessageUser setUri(String uri) 设置此 MessageUser 的 URI。 MessageUser setUserAsImportant(boolean important) 设置此 MessageUser 是否重要。 String toString() 返回对象的字符串表示形式。 boolean unmarshalling(Parcel in) 从 Parcel 中解组此 MessageUser 对象。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 从接口 ohos.utils.Sequenceable 继承的方法 hasFileDescriptor 字段详细信息 PRODUCER public static final Sequenceable.ProducerMessageUser PRODUCER 从 Parcel 创建 MessageUser 实例。 Since: 4 构造函数详细信息 MessageUser public MessageUser() 方法详情 getName public String getName() 获取此 MessageUser 的名称。 返回: 返回此 MessageUser...

优惠码

鸿蒙OS INotificationSubscriber

INotificationSubscriber @Deprecatedpublic interface INotificationSubscriberextends IRemoteBroker 已弃用。 此更改从 API 版本 5 开始生效。此 API 仅在高级通知系统中使用,不对外部系统开放。 Since: 1 字段摘要 修饰符和类型 字段 描述 static String DESCRIPTOR 已弃用。 static int NOTIFICATION_CONNECTED 已弃用。 static int NOTIFICATION_DISCONNECT 已弃用。 static int NOTIFICATION_DISTURB_MODE_CHANGE 已弃用。 static int NOTIFICATION_POSTED 已弃用。 static int NOTIFICATION_REMOVED 已弃用。 static int NOTIFICATION_UPDATE 已弃用。 方法总结 修饰符和类型 方法 描述 void onDisturbModeChange(int disturbMode) 已弃用。 void onNotificationPosted(NotificationRequest info) 已弃用。 void onNotificationPosted(NotificationRequest info, NotificationSortingMap sortingMap) 已弃用。 void onNotificationRankingUpdate(NotificationSortingMap sortingMap) 已弃用。 void onNotificationRemoved(NotificationRequest info) 已弃用。 void onNotificationRemoved(NotificationRequest info, NotificationSortingMap sortingMap, int deleteReason) 已弃用。 void onSubscribeConnected() 已弃用。 void onSubscribeDisConnected() 已弃用。 从接口 ohos.rpc.IRemoteBroker 继承的方法 asObject 字段详细信息 DESCRIPTOR @Deprecated static final String DESCRIPTOR 已弃用。 唯一标识远程过程调用 (RPC) 对象。 Since: 1 NOTIFICATION_CONNECTED @Deprecated static final int NOTIFICATION_CONNECTED 已弃用。 表示订阅者已连接到 ANS。 此常量用于调用 onSubscribeConnected() 方法。 Since: 1 NOTIFICATION_DISCONNECT @Deprecated static final int NOTIFICATION_DISCONNECT 已弃用。 表示订阅者与 ANS 断开连接。 此常量用于调用 onSubscribeDisConnected() 方法。 Since: 1 NOTIFICATION_DISTURB_MODE_CHANGE @Deprecated static final int NOTIFICATION_DISTURB_MODE_CHANGE...

优惠码

鸿蒙OS IAdvancedNotificationManager

IAdvancedNotificationManager @Deprecated public interface IAdvancedNotificationManager extends IRemoteBroker 已弃用。 此更改从 API 版本 5 开始生效。此 API 仅在高级通知系统中使用,不对外部系统开放。 Since: 1 字段摘要 修饰符和类型 字段 描述 static int ANS_ABORT_ALL 已弃用。 static int ANS_ABORT_ONE 已弃用。 static int ANS_ADD_SLOTS 已弃用。 static int ANS_CAN_PUBLISH_NOTIFICATION_AS_BUNDLE 已弃用。 static int ANS_CREATE_SLOT 已弃用。 static int ANS_CREATE_SLOTGROUP 已弃用。 static int ANS_CREATE_SLOTGROUPS 已弃用。 static int ANS_DELETE_SLOT 已弃用。 static int ANS_DELETE_SLOTGROUP 已弃用。 static int ANS_GET_ACTIVE_NOTIFICATION 已弃用。 static int ANS_GET_ACTIVE_NOTIFICATION_NUM 已弃用。 static int ANS_GET_NOTIFICATION_AGENT 已弃用。 static int ANS_GET_SLOT 已弃用。 static int ANS_GET_SLOTGROUP 已弃用。 static int ANS_GET_SLOTGROUPS 已弃用。 static int ANS_GET_SLOTS 已弃用。 static int ANS_GET_SORTING 已弃用。 static int ANS_INQUIRY_BUNDLE_IMPORTANCE 已弃用。 static int ANS_INQUIRY_IS_SUSPENDED 已弃用。 static int ANS_NOTIFICATION_POLICY_ACCESS_PERMISSION 已弃用。 static int ANS_NOTIFICATIONS_ALLOWED 已弃用。 static int ANS_PUBLISH_NOTIFICATION_AS_BUNDLE 已弃用。 static int ANS_SCHEDULE_NOTIFICATION 已弃用。 static int ANS_SET_NOTIFICATION_AGENT 已弃用。 static int ANS_SET_NOTIFICATION_BADGE_NUM1 已弃用。 static int ANS_SET_NOTIFICATION_BADGE_NUM2 已弃用。 static String DESCRIPTOR 已弃用。 方法总结 修饰符和类型 方法 描述 void addNotificationSlot(String bundle, NotificationSlot slot) 已弃用。 void addNotificationSlotGroup(String bundle, NotificationSlotGroup slotGroup) 已弃用。 void addNotificationSlotGroups(String bundle, ListNotificationSlotGroup slotGroups) 已弃用。 void addNotificationSlots(String bundle, ListNotificationSlot slots) 已弃用。 boolean areNotificationsSuspended(String bundle)...

优惠码

鸿蒙OS WindowManager.LayoutConfig

WindowManager.LayoutConfig java.lang.Object |—ohos.agp.window.service.WindowManager.LayoutConfig public static class WindowManager.LayoutConfig extends Object 封装与 Window 一起使用的布局属性、标志和常量。 Since: 3 字段摘要 修饰符和类型 字段 描述 int alignment 指示窗口的方向。 float alpha 表示窗口的透明度。 static int ALTER_ALPHA 指示 alpha 值已更改。 static int ALTER_DIM 表示调光量发生了变化。 static int ALTER_FLAGS 指示标志已更改。 static int ALTER_FORMAT 表示像素格式已更改。 static int ALTER_LAYOUT 表示布局已更改。 static int ALTER_TITLE 表明标题已更改。 int animations 指示窗口动画的资源 id。 float dim 指示窗口的亮度。 static int FIRST_SUB_WINDOW 1000:表示第一个子窗口。 static int FIRST_SYSTEM_WINDOW 2000:表示第一个系统窗口。 int flags 指示窗口的各种标志。 int height 指示窗口的高度。 static int INPUT_ADJUST_NOTHING 0x00000018:不调整输入法窗口; 调整窗口大小或移动窗口。 static int INPUT_ADJUST_PAN 0x00000010:移动窗口位置以显示软输入光标的焦点。 static int INPUT_ADJUST_RESIZE 0x00000008:重新调整窗口大小以确保输入焦点可见。 static int INPUT_ADJUST_UNSPECIFIED 0x00:依赖于窗口的内容。 static int INPUT_IS_FORWARD_NAVIGATION 0x00000080:当此窗口请求用户获得焦点时,系统自动设置此标志。 static int INPUT_MASK_ADJUST 0x00000078:调整窗口使软输入区域可见。 static int INPUT_MASK_STATE 0x15:与窗口确认软输入面板的显示状态。 static int INPUT_STATE_ALWAYS_HIDDEN 0x80000001:当面板接收到焦点时,软输入区域被隐藏。 static int INPUT_STATE_ALWAYS_VISIBLE 0x80000002:当面板获得焦点时,软输入区域始终可见。 static int INPUT_STATE_HIDDEN 0x00000001:当此窗口请求用户获得焦点时,软输入面板不可见。 static int INPUT_STATE_UNCHANGED 0x80000000:无法更改软输入面板的可见性。 static int INPUT_STATE_UNSPECIFIED 0:窗口请求焦点后,软输入面板可见或不可见。 static int INPUT_STATE_VISIBLE 0x00000002:当用户向前导航到面板时,显示软输入区域。 static int LAYOUT_IN_DISPLAY_SIDE_MODE_ALWAYS 表示始终显示侧边栏。 static int LAYOUT_IN_DISPLAY_SIDE_MODE_DEFAULT 指示侧边栏的默认显示模式。 static int LAYOUT_IN_DISPLAY_SIDE_MODE_NEVER 指示从不显示侧边栏。 int layoutInDisplaySideMode 指示该窗口侧边栏的显示方式。 static int MARK_ALLOW_EXTEND_LAYOUT 0x00000100:面板可以扩展到屏幕之外。 static int MARK_ALLOW_LAYOUT_COVER_SCREEN 0x00000080:扩展窗口覆盖全屏,同时保持边框周围的装饰(如状态栏)正常显示。 static int MARK_ALLOW_LAYOUT_OVERSCAN 0x01000000:表示窗口可以将内容扩散到屏幕的过扫描范围,如果有的话。...

优惠码

鸿蒙OS WindowManager

WindowManager java.lang.Object |—ohos.agp.window.service.WindowManager public class WindowManager extends Object 创建一个用于创建和销毁 Window 对象的单例 WindowManager。 Since: 2 嵌套类摘要 修饰符和类型 类 描述 static class WindowManager.LayoutConfig 封装与 Window 一起使用的布局属性、标志和常量。 static class WindowManager.NotchMode 表示缺口的显示方式。 static class WindowManager.PermissionException 描述创建窗口时抛出的异常。 方法总结 修饰符和类型 方法 描述 Window addComponent(ComponentContainer component, Context context, int typeFlag) 根据组件布局、上下文和窗口类型创建窗口。 PixelMap captureScreen(Rect rectangle, int width, int height, int angle) 截图。 void destroyWindow(Window window) 销毁一个窗口。 static WindowManager getInstance() 获取单例 WindowManager。 OptionalWindow getTopWindow() 获取当前应用程序的顶部窗口。 int getWindowCount(Context context) 获取当前应用程序所有窗口的数量。 从类 java.lang.Object 继承的方法 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 方法详情 getInstance public static WindowManager getInstance() 获取单例 WindowManager。 这是一个静态工厂方法。 返回: 返回 WindowManager 实例。 getTopWindow public OptionalWindow getTopWindow() 获取当前应用程序的顶部窗口。 返回: 返回当前应用程序的顶部窗口。 Throws: Throw名称 Throw描述 NullPointerException 如果 mAGPWindowManager 为空,则抛出此异常。 getWindowCount public int getWindowCount(Context context) 获取当前应用程序所有窗口的数量。 参数: 参数名称 参数描述 context 指示窗口的上下文。 返回: 返回当前应用程序所有窗口的数量。 Throws: Throw名称 Throw描述 NullPointerException 如果 mAGPWindowManager 为空,则抛出此异常。 addComponent public Window addComponent(ComponentContainer component, Context context, int typeFlag) 根据组件布局、上下文和窗口类型创建窗口。 参数: 参数名称 参数描述 component 表示用户定义的组件布局。 context 指明要使用的上下文。 typeFlag 指明窗口类型。 返回: 返回创建的窗口。 Throws: Throw名称 Throw描述...

优惠码

鸿蒙OS Window

Window java.lang.Object |—ohos.agp.window.service.Window public class Window extends Object windows 的实现类。 该类提供了基于 LayoutConfig 修改窗口属性的方法。 Since: 2 嵌套类摘要 修饰符和类型 类 描述 static interface Window.IAccessibilityEventListener 填充可访问性事件侦听器的实现类。 构造函数摘要 构造函数 描述 Window() 用于创建 Window 实例的构造函数。 方法总结 修饰符和类型 方法 描述 void addFlags(int flags) 添加窗口标志。 void addWindowFlags(int flags) 在 ohos 中添加窗口的特征标志。 void clearFlags(int flags) 从窗口中清除标志。 void clearWindowFlags(int flags) 清除窗口中的标志。 float getAltitude() 获取窗口在垂直于手机屏幕方向的高度。 Rect getBoundRect() 获取移动窗口的边界。 OptionalComponent getCurrentComponentFocus() 获取在此窗口中获得焦点的 Component 对象。 OptionalWindowManager.LayoutConfig getLayoutConfig() 获取要读取或修改的 Window 实例的 LayoutConfig 对象。 LayoutScatter getLayoutScatter() 获取此窗口的布局散点图。 int getStatusBarVisibility() 获取状态栏是否可见。 int getSystemBarStyle() 获取导航栏或状态栏的可见性类型。 boolean isActive() 检查此窗口是否处于活动状态。 boolean isMovable() 检查窗口是否可移动。 boolean isWCGMode() 检查此窗口是否处于广色域 (WCG) 模式。 int replicateFrom(WindowManager.LayoutConfig param) 为此窗口设置布局属性。 void setAccessibilityEventListener(Window.IAccessibilityEventListener listener) 设置可访问性事件的侦听器。 void setAltitude(float altitude) 设置垂直于电话屏幕方向的窗口高度。 void setBackground(String elementPath) 设置窗口的背景。 void setBackgroundColor(RgbColor rgbColor) 设置窗口的背景颜色。 void setBoundRect(Rect boundRect) 设置移动窗口的边界。 void setInputPanelDisplayType(int type) 设置软输入面板的显示类型。 void setLayoutAlignment(int alignment) 设置窗口的文本对齐方式。 void setLayoutConfig(WindowManager.LayoutConfig param) 设置 Window 实例的 LayoutConfig。 void setLayoutFlags(int flags, int mask) 为窗口设置标志。 void setLayoutInDisplaySideMode(int mode) 设置此窗口侧边栏的显示模式。 void setLayoutInNotchMode(WindowManager.NotchMode mode) 设置此窗口在凹槽中的显示模式。 void setMovable(boolean isMovable) 设置窗口是否可移动。 void setNavigationBarColor(int color) 设置导航栏的颜色。 void setOnApplyComponentPaddingListener(IApplyComponentPaddingListener listener) 设置一个监听器来监控 ComponentPadding 的变化。 void setPadding(int left, int top, int right, int bottom)...

优惠码

鸿蒙OS DisplayNotch

DisplayNotch java.lang.Object |—ohos.agp.window.service.DisplayNotch public class DisplayNotch extends Object 表示一个显示槽口,不能用于显示内容。 您可以使用此类中的方法来获取设备上的缺口大小和安全填充。 Since: 5 构造函数摘要 构造函数 描述 DisplayNotch() 用于创建 DisplayNotch 实例的构造函数。 方法总结 修饰符和类型 方法 描述 boolean equals(Object object) 检查此 DisplayNotch 对象是否等于指定的对象。 Rect getNotchRectBottom() 获取屏幕底部的矩形显示槽口。 Rect getNotchRectLeft() 获取屏幕左侧的矩形显示槽口。 Rect getNotchRectRight() 获取屏幕右侧的矩形显示槽口。 ListRect getNotchRects() 获取 Rect 对象列表,每个对象代表屏幕上的一个矩形显示槽口。 Rect getNotchRectTop() 获取屏幕顶部的矩形显示槽口。 int getPaddingBottom() 从屏幕底部获取安全填充,不包括显示槽口。 int getPaddingLeft() 从屏幕左侧获取安全填充,不包括显示槽口。 int getPaddingRight() 从屏幕右侧获取安全填充,不包括显示槽口。 int getPaddingTop() 从屏幕顶部获取安全填充,不包括显示槽口。 int hashCode() 获取此 DisplayNotch 对象的哈希码。 String toString() 返回表示此 DisplayNotch 对象的字符串。 从类 java.lang.Object 继承的方法 clone, finalize, getClass, notify, notifyAll, wait, wait, wait 构造函数详细信息 DisplayNotch public DisplayNotch() 用于创建 DisplayNotch 实例的构造函数。 方法详情 getNotchRectBottom public Rect getNotchRectBottom() 获取屏幕底部的矩形显示槽口。 返回: 返回一个 Rect 对象,以像素为单位。 Throws: Throw名称 Throw描述 ohos.agp.window.view.DisplayCutoutWrapper.ParameterInvalidException 如果 mDisplayCutoutWrapper 为空,则抛出此异常。 Since: 5 getNotchRectLeft public Rect getNotchRectLeft() 获取屏幕左侧的矩形显示槽口。 返回: 返回一个 Rect 对象,以像素为单位。 Throws: Throw名称 Throw描述 ohos.agp.window.view.DisplayCutoutWrapper.ParameterInvalidException 如果 mDisplayCutoutWrapper 为空,则抛出此异常。 Since: 5 getNotchRectRight public Rect getNotchRectRight() 获取屏幕右侧的矩形显示槽口。 返回: 返回一个 Rect 对象,以像素为单位。 Throws: Throw名称 Throw描述 ohos.agp.window.view.DisplayCutoutWrapper.ParameterInvalidException 如果 mDisplayCutoutWrapper 为空,则抛出此异常。 Since: 5 getNotchRectTop public Rect...

优惠码