ภาพรวม
ตัวควบคุมมุมมองที่ใช้แถบควบคุม "กำลังเล่น"
ในการกำหนดค่าเริ่มต้น แถบนี้จะแสดงภาพขนาดย่อ ชื่อ และคำบรรยายแทนเสียงของรายการสื่อปัจจุบัน แถบความคืบหน้าของสตรีม และปุ่มสลับเล่น/หยุดชั่วคราว
ดูโปรโตคอลการมอบสิทธิ์ได้ที่ GCKUIMiniMediaControlsViewControllerDelegate
- Since
- 3.0
รับค่า UIViewController ใช้ <GCKUIMediaButtonBarProtocol>
สรุปวิธีการของอินสแตนซ์ | |
| (NSUInteger) | - buttonCount |
| จำนวนปุ่มสูงสุดที่ผู้รับสามารถปรับแต่งได้ เพิ่มเติม... | |
| (void) | - setButtonType:atIndex: |
กำหนดประเภทปุ่มสำหรับปุ่มที่ตำแหน่ง index เพิ่มเติม... | |
| (GCKUIMediaButtonType) | - buttonTypeAtIndex: |
| แสดงผลประเภทปุ่มปัจจุบันในตำแหน่งที่ระบุ เพิ่มเติม... | |
| (void) | - setCustomButton:atIndex: |
| ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรแสดงในตำแหน่งปุ่มที่กำหนด เพิ่มเติม... | |
| (UIButton *__nullable) | - customButtonAtIndex: |
| แสดงผลการอ้างอิงปุ่มที่กำหนดเองในตำแหน่งที่ระบุ เพิ่มเติม... | |
สรุปพร็อพเพอร์ตี้ | |
| id< GCKUIMiniMediaControlsViewControllerDelegate > | delegate |
| 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: | (UIButton *__nullable) | 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.
| - (UIButton *__nullable) customButtonAtIndex: | (NSUInteger) | index |
แสดงผลการอ้างอิงปุ่มที่กำหนดเองในตำแหน่งที่ระบุ
- Parameters
-
index The button's position, where 0 is the right-most position.
- การคืนสินค้า
- การอ้างอิงถึงปุ่มในตำแหน่งที่เลือก หรือ
nilหากไม่มีปุ่มที่กำหนดเองในตำแหน่งนั้น หรือตำแหน่งไม่ถูกต้อง
รายละเอียดพร็อพเพอร์ตี้
|
readwritenonatomicweak |
Delegate ของตัวควบคุมมุมมอง ซึ่งโดยปกติจะเป็นตัวควบคุมมุมมองแบบเต็มหน้าจอที่รับผิดชอบในการนำเสนอและซ่อนแถบควบคุมนี้เมื่อเหมาะสม
|
readwritenonatomicassign |
จะแสดงภาพปกหรือไม่
โดยค่าเริ่มต้น พร็อพเพอร์ตี้นี้จะตั้งค่าเป็น YES
|
readnonatomicassign |
ระบุสถานะการแสดงผลของแถบควบคุม
เมื่อ YES มีการแคสต์สื่อซึ่งควบคุมได้โดยใช้แถบควบคุม และสามารถทำให้มองเห็นได้ เมื่อ NO แถบควบคุมควรซ่อนอยู่
|
readnonatomicassign |
ความสูงขั้นต่ำ (และที่แนะนำ) ที่ควรแสดงมุมมองนี้