目录

PeerDevice

java.lang.Object

|---com.huawei.watch.kit.hiwear.peerdevice.PeerDevice

public class PeerDevice
extends java.lang.Object

用于提供手机信息。

Method Summary

Modifier and Type

Method and Description

short

getOsType() 获取手机系统类型。

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

[h2]getOsType

public short getOsType()

获取手机系统类型。

Returns:

手机的系统类型。1为Andriod系统或HarmonyOS 5.0之前版本(如HarmonyOS 2.x/3.x/4.x)系统,2为IOS系统,3为HarmonyOS 5.0及以上版本系统。