ภาพรวม
ตัวควบคุมมุมมองที่ใช้แถบควบคุม "กําลังเล่น"
ในการกําหนดค่าเริ่มต้น ระบบจะแสดงภาพขนาดย่อ ชื่อ และชื่อรองของรายการสื่อปัจจุบัน แถบความคืบหน้าของสตรีม และปุ่มเปิด/ปิดการเล่น/หยุดชั่วคราว
โปรดดู GCKUIMiniMediaControlsViewControllerDelegate สําหรับโปรโตคอลการมอบสิทธิ์
- Since
- 3.0
รับค่า UIViewController นํา <GCKUIMediaButtonBarProtocol> ไปใช้
สรุปเมธอดของอินสแตนซ์ | |
(NSUInteger) | - buttonCount |
จํานวนปุ่มสูงสุดที่ผู้รับสามารถปรับแต่งได้ เพิ่มเติม... | |
(void) | - setButtonType:atIndex: |
ตั้งค่าประเภทปุ่มสําหรับปุ่มที่ตําแหน่ง index เพิ่มเติม... | |
(GCKUIMediaButtonType) | - buttonTypeAtIndex: |
แสดงผลประเภทปุ่มปัจจุบันในตําแหน่งที่กําหนด เพิ่มเติม... | |
(void) | - setCustomButton:atIndex: |
ตั้งค่าอินสแตนซ์ของ UIButton ที่ควรแสดงที่ตําแหน่งปุ่มที่ระบุ เพิ่มเติม... | |
(UIButton *__nullable) | - 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: | (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 |
การมอบสิทธิ์ของตัวควบคุมการแสดงผล โดยทั่วไปจะเป็นตัวควบคุมการแสดงผลแบบเต็มหน้าจอในการนําเสนอและซ่อนแถบควบคุมนี้ตามความเหมาะสม
|
readwritenonatomicassign |
ภาพขนาดย่อควรจะแสดงหรือไม่
พร็อพเพอร์ตี้นี้ตั้งไว้เป็น YES
โดยค่าเริ่มต้น
|
readnonatomicassign |
ระบุสถานะการแสดงผลของแถบควบคุม
เมื่อ YES
ระบบจะแคสต์สื่อที่แถบควบคุมควบคุมและทําให้มองเห็นได้ เมื่อ NO
แถบควบคุมควรซ่อนอยู่
|
readnonatomicassign |
ความสูงขั้นต่ํา (และแนะนํา) ที่ควรแสดงมุมมองนี้