目录

Peer

java.lang.Object

|---com.huawei.wearengine.p2p.Peer

public class Peer
extends java.lang.Object

Message object of the device that needs to be communicated with.

Message objects of the device include the device object, fingerprint information, and package name.

Nested Class Summary

Modifier and Type

Class and Description

static class

Peer.Builder Building class in Peer.

Method Summary

Modifier and Type

Method and Description

Device

getDevice() Obtains the Peer device object.

java.lang.String

getFingerPrint() Obtains the Peer fingerprint information.

java.lang.String

getPkgName() Obtains the Peer package name.

Method Detail

[h2]getDevice

public Device getDevice()

It is used to obtain the Peer device object.

Returns:

Peer device object.

Since:

API level 0 (SDK 5.0.0.301)

[h2]getFingerPrint

public java.lang.String getFingerPrint()

It is used to obtain the Peer fingerprint information.

Returns:

It is the Peer fingerprint information.

Since:

API level 0 (SDK 5.0.0.301)

[h2]getPkgName

public java.lang.String getPkgName()

It is used to obtain the Peer package name.

Returns:

Peer package name.

Since:

API level 0 (SDK 5.0.0.301)