ภาพรวม
ตัวควบคุมมุมมองซึ่งใช้แถบควบคุม "กำลังเล่น"
ในการกำหนดค่าเริ่มต้น ระบบจะแสดงภาพขนาดย่อ ชื่อ และคำบรรยายสำหรับรายการสื่อปัจจุบัน แถบความคืบหน้าของสตรีม และปุ่มเปิด/ปิดเล่น/หยุดชั่วคราว
โปรดดูโปรโตคอลการมอบสิทธิ์ที่ GCKUIMiniMediaControlsViewControllerDelegate
- Since
- 3.0
รับค่า UIViewController ใช้ <GCKUIMediaButtonBarProtocol>
สรุปเมธอดของอินสแตนซ์ | |
| (NSUInteger) | - buttonCount |
| จำนวนปุ่มสูงสุดที่ผู้รับปรับแต่งได้ เพิ่มเติม... | |
| (void) | - setButtonType:atIndex: |
ตั้งค่าประเภทปุ่มสำหรับปุ่มที่ตำแหน่ง index เพิ่มเติม... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| แสดงประเภทปุ่มปัจจุบันในตำแหน่งที่ระบุ เพิ่มเติม... | |
| (void) | - setCustomButton:atIndex: |
| ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรปรากฏขึ้นในตำแหน่งปุ่มที่ระบุ เพิ่มเติม... | |
| (nullable UIButton *) | - customButtonAtIndex: |
| แสดงการอ้างอิงไปยังปุ่มที่กำหนดเองในตำแหน่งที่ระบุ เพิ่มเติม... | |
สรุปพร็อพเพอร์ตี้ | |
| id < GCKUIMiniMediaControlsViewControllerDelegate > | delegate |
| ตัวควบคุมมุมมอง โดยปกติจะเป็นตัวควบคุมการดูแบบเต็มหน้าจอที่ทำหน้าที่นำเสนอและซ่อนแถบควบคุมนี้เมื่อเหมาะสม เพิ่มเติม... | |
| BOOL | thumbnailEnabled |
| ภาพขนาดย่อควรแสดงหรือไม่ เพิ่มเติม... | |
| BOOL | active |
| ระบุสถานะการแสดงผลของแถบควบคุม เพิ่มเติม... | |
| CGFloat | minHeight |
| ความสูงขั้นต่ำ (และที่ต้องการ) ที่จะแสดงมุมมองนี้ เพิ่มเติม... | |
รายละเอียดของเมธอด
| - (NSUInteger) buttonCount |
จำนวนปุ่มสูงสุดที่ผู้รับปรับแต่งได้
- การคืนสินค้า
- จำนวนปุ่ม
| - (void) setButtonType: | (GCKUIMediaButtonType) | buttonType | |
| atIndex: | (NSUInteger) | index | |
ตั้งค่าประเภทปุ่มสำหรับปุ่มที่ตำแหน่ง index
- Parameters
-
buttonType The type of the button. If the type is GCKUIMediaButtonTypeCustom, a UIButton instance should be passed for the same index using setCustomButton:atIndex:. Otherwise a default button is created and presented in that position. index The position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
| - (GCKUIMediaButtonType) buttonTypeAtIndex: | (NSUInteger) | index |
แสดงประเภทปุ่มปัจจุบันในตำแหน่งที่ระบุ
- Parameters
-
index The button's position, where 0 is the left-most position.
- การคืนสินค้า
- ประเภทของปุ่มในตำแหน่งที่เลือก
| - (void) setCustomButton: | (nullable UIButton *) | customButton | |
| atIndex: | (NSUInteger) | index | |
ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรปรากฏขึ้นในตำแหน่งปุ่มที่ระบุ
- Parameters
-
customButton The button instance to be presented in the control bar. index The position in which the button should be presented. 0 is the left-most position. Indices should be smaller than the value returned by buttonCount.
| - (nullable UIButton *) customButtonAtIndex: | (NSUInteger) | index |
แสดงการอ้างอิงไปยังปุ่มที่กำหนดเองในตำแหน่งที่ระบุ
- Parameters
-
index The button's position, where 0 is the right-most position.
- การคืนสินค้า
- การอ้างอิงปุ่มในตำแหน่งที่เลือก หรือ
nilหากไม่มีปุ่มที่กำหนดเองในตำแหน่งนั้นหรือตำแหน่งไม่ถูกต้อง
รายละเอียดที่พัก
|
readwritenonatomicweak |
ตัวควบคุมมุมมอง โดยปกติจะเป็นตัวควบคุมการดูแบบเต็มหน้าจอที่ทำหน้าที่นำเสนอและซ่อนแถบควบคุมนี้เมื่อเหมาะสม
|
readwritenonatomicassign |
ภาพขนาดย่อควรแสดงหรือไม่
ระบบจะตั้งค่าพร็อพเพอร์ตี้นี้เป็น YES โดยค่าเริ่มต้น
|
readnonatomicassign |
ระบุสถานะการแสดงผลของแถบควบคุม
เมื่อ YES จะมีการแคสต์สื่ออยู่ ซึ่งควบคุมด้วยแถบควบคุมได้และมองเห็นได้ เมื่อ NO แถบควบคุมควรซ่อนอยู่
|
readnonatomicassign |
ความสูงขั้นต่ำ (และที่ต้องการ) ที่จะแสดงมุมมองนี้