คลาสอุปกรณ์หลายโซนของ GCK

ข้อมูลอ้างอิงคลาส GCKMultizoneDevice

ภาพรวม

อุปกรณ์สมาชิกของกลุ่มมัลติโซน

Since
3.1

รับค่า NSObject, <NSCopying> และ <NSSecureCoding>

สรุปเมธอดของอินสแตนซ์

(instancetype) - initWithJSONObject:
 เริ่มต้นออบเจ็กต์ด้วยข้อมูล JSON ที่ระบุ เพิ่มเติม...
 
(instancetype) - initWithDeviceID:friendlyName:capabilities:volumeLevel:muted:
 ตัวเริ่มต้นที่กําหนด เพิ่มเติม...
 

สรุปพร็อพเพอร์ตี้

NSString * deviceID
 รหัสอุปกรณ์ที่ไม่ซ้ํากัน เพิ่มเติม...
 
NSString * friendlyName
 ชื่อที่เหมาะกับอุปกรณ์ เพิ่มเติม...
 
NSInteger capabilities
 ความสามารถของอุปกรณ์ เพิ่มเติม...
 
float volumeLevel
 ระดับเสียงของอุปกรณ์ เพิ่มเติม...
 
BOOL muted
 ปิดเสียงอุปกรณ์หรือไม่ เพิ่มเติม...
 

รายละเอียดเมธอด

- (instancetype) initWithJSONObject: (id)  JSONObject

เริ่มต้นออบเจ็กต์ด้วยข้อมูล JSON ที่ระบุ

- (instancetype) initWithDeviceID: (NSString *)  deviceID
friendlyName: (NSString *)  friendlyName
capabilities: (NSInteger)  capabilities
volumeLevel: (float)  volume
muted: (BOOL)  muted 

ตัวเริ่มต้นที่กําหนด

Parameters
deviceIDThe unique device ID.
friendlyNameThe device's friendly name.
capabilitiesThe device capabilities.
volumeThe device volume level.
mutedWhether the device is muted.

รายละเอียดพร็อพเพอร์ตี้

- (NSString*) deviceID
readnonatomiccopy

รหัสอุปกรณ์ที่ไม่ซ้ํากัน

- (NSString*) friendlyName
readnonatomiccopy

ชื่อที่เหมาะกับอุปกรณ์

- (NSInteger) capabilities
readwritenonatomicassign

ความสามารถของอุปกรณ์

- (float) volumeLevel
readwritenonatomicassign

ระดับเสียงของอุปกรณ์

- (BOOL) muted
readwritenonatomicassign

ปิดเสียงอุปกรณ์หรือไม่