개요
'지금 재생 중' 컨트롤 바를 구현하는 뷰 컨트롤러
기본 구성에는 현재 미디어 항목의 썸네일, 제목, 부제목, 스트림 진행률 표시줄, 재생/일시중지 전환 버튼이 표시됩니다.
위임 프로토콜은 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 |
이 뷰를 표시할 최소 및 기본 높이입니다.