文档管理中心

PeerDevice

java.lang.Object

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

收起
自动换行
深色代码主题
复制
  1. public class PeerDevice
  2. 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

getOsType

public short getOsType()

获取手机系统类型。

Returns:

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

在 API参考 中进行搜索
请输入您想要搜索的关键词