GCKUIMiniMediaControlsViewController 클래스

GCKUIMiniMediaControlsViewController 클래스 참조

개요

'지금 재생 중' 컨트롤 바를 구현하는 뷰 컨트롤러

기본 구성에서는 현재 미디어 항목의 썸네일, 제목, 자막, 스트림 진행률 표시줄, 재생/일시중지 전환 버튼이 표시됩니다.

위임 프로토콜은 GCKUIMiniMediaControlsViewControllerDelegate를 참고하세요.

다음 이후:
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
buttonTypeThe 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.
indexThe 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
indexThe button's position, where 0 is the left-most position.
반환 값
선택한 위치의 버튼 유형입니다.
- (void) setCustomButton: (nullable UIButton *)  customButton
atIndex: (NSUInteger)  index 

지정된 버튼 위치에 표시되어야 하는 UIButton의 인스턴스를 설정합니다.

Parameters
customButtonThe button instance to be presented in the control bar.
indexThe 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
indexThe button's position, where 0 is the right-most position.
반환 값
선택한 위치에 있는 버튼을 가리키는 참조입니다. 또는 해당 위치에 맞춤 버튼이 없거나 위치가 잘못된 경우 nil입니다.

부동산 세부정보

- (id<GCKUIMiniMediaControlsViewControllerDelegate>) delegate
readwritenonatomicweak

뷰 컨트롤러의 델게이트로, 일반적으로 필요한 경우 이 컨트롤 바를 표시하고 숨기는 전체 화면 뷰 컨트롤러입니다.

- (BOOL) thumbnailEnabled
readwritenonatomicassign

미리보기 이미지 표시 여부입니다.

기본적으로 이 속성은 YES로 설정됩니다.

- (BOOL) active
readnonatomicassign

컨트롤 바의 표시 상태를 나타냅니다.

YES인 경우 전송 중인 미디어가 있는 경우 컨트롤 바에서 제어할 수 있으며 미디어를 표시할 수 있습니다. NO인 경우 컨트롤 바가 숨겨집니다.

- (CGFloat) minHeight
readnonatomicassign

이 뷰가 표시되어야 하는 최소 (및 권장) 높이.