GCKRequest 클래스
비동기식 요청을 추적하기 위한 객체입니다.
위임 프로토콜은 GCKRequestDelegate를 참고하세요.
- 다음 이후:
- 3.0
NSObject를 상속합니다.
요청을 취소합니다.
요청을 취소한다고 해서 요청이 수신자에서 완료되지 않을 수도 있습니다. 발신자가 요청 추적을 중지하는 것일 뿐입니다.
- (void) failWithError: |
|
(GCKError *) |
error |
|
오류가 발생하여 요청에 실패하고 이에 따라 위임에 알립니다.
이 메서드는 GCKRequest::requestWithID: 팩토리 메서드를 사용하여 애플리케이션에서 구성한 GCKRequest 객체에서만 호출할 수 있습니다. 프레임워크 자체에서 만든 GCKRequest 객체에서 이 메서드를 호출하면 예외가 발생합니다.
- Parameters
-
error | The error describing the failure. |
- 다음 이후:
- 3.4
- (void) abortWithReason: |
|
(GCKRequestAbortReason) |
reason |
|
이유와 함께 요청을 취소하고 그에 따라 위임에 알립니다.
이 메서드는 GCKRequest::requestWithID: 팩토리 메서드를 사용하여 애플리케이션에서 구성한 GCKRequest 객체에서만 호출할 수 있습니다. 프레임워크 자체에서 만든 GCKRequest 객체에서 이 메서드를 호출하면 예외가 발생합니다.
- Parameters
-
reason | The reason for the abort. |
- 다음 이후:
- 3.4
요청 상태에 대한 알림을 수신하기 위한 위임입니다.
- (GCKRequestID) requestID |
|
readnonatomicassign |
요청 실패를 일으킨 오류(있는 경우)이고 그렇지 않은 경우 nil
입니다.
요청이 현재 진행 중인지 여부를 나타내는 플래그입니다.
외부 요청(즉, 프레임워크 자체가 아니라 애플리케이션에서 생성한 요청)인지 여부를 나타내는 플래그입니다.
- 다음 이후:
- 3.4
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-02(UTC)
[null,null,["최종 업데이트: 2023-12-02(UTC)"],[[["The `GCKRequest` class is used for tracking asynchronous requests made to a Google Cast device."],["Applications can create and manage their own `GCKRequest` objects, or they can use the framework-provided ones."],["`GCKRequest` objects have a delegate that is notified of the request's progress and completion status."],["A `GCKRequest` can be canceled, completed, failed, or aborted, depending on the outcome of the operation it is tracking."],["Each `GCKRequest` has a unique ID and properties indicating its progress, any associated errors, and whether it's an external request."]]],["The GCKRequest class manages asynchronous requests, enabling tracking and control. Key actions include: canceling a request (`cancel`), completing it (`complete`), or failing it with an error (`failWithError:`) or a reason (`abortWithReason:`). Applications can create request objects using `applicationRequest`. Properties like `delegate`, `requestID`, `error`, `inProgress`, and `external` provide request status information. The delegate receives notifications about the request status. These request objects created by applications can be managed by the application using the methods complete, failWithError and abortWithReason.\n"]]