目录

NotifyClient

java.lang.Object

|---com.huawei.wearengine.notify.NotifyClient

public final class NotifyClient
extends java.lang.Object

It is the client used for sending notifications.

Method Summary

Modifier and Type

Method and Description

com.huawei.hmf.tasks.Task<java.lang.Void>

notify(Device device, Notification notification) Sends a notification to a specified device.

Method Detail

[h2]notify

public com.huawei.hmf.tasks.Task<java.lang.Void> notify(Device device, Notification notification)

It is used to send a notification to a specified device.

Parameters:

Parameter Name

Parameter Description

device

Indicates the wearable device for receiving notifications.

notification

Indicates the notification received by the wearable device.

Returns:

The notification result.

Since:

API level 2 (SDK 5.0.1.300)