Protocolo <GCKRequestDelegate>
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
O protocolo delegado GCKRequest.
- Como
- 3,0
Herda <NSObjectNSObject>.
- (void) requestDidComplete: |
|
(GCKRequest *) |
request |
|
|
optional |
Chamado quando a solicitação é concluída com sucesso.
- Parameters
-
Chamado quando a solicitação falha.
- Parameters
-
request | The request. |
error | The error describing the failure. |
- (void) request: |
|
(GCKRequest *) |
request |
didAbortWithReason: |
|
(GCKRequestAbortReason) |
abortReason |
|
|
| |
|
optional |
Chamado quando a solicitação não está mais sendo rastreada.
Isso não garante que a solicitação foi bem-sucedida ou falhou.
- Parameters
-
request | The request. |
abortReason | The reason why the request is no longer being tracked. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-25 UTC.
[null,null,["Última atualização 2025-07-25 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGCKRequestDelegate\u003c/code\u003e protocol defines methods to handle the lifecycle of a \u003ccode\u003eGCKRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to notify the delegate when a request completes successfully, fails, or is aborted.\u003c/p\u003e\n"],["\u003cp\u003eDelegate methods provide information about the request and any errors or reasons for abortion.\u003c/p\u003e\n"],["\u003cp\u003eThis protocol is essential for tracking the status of asynchronous requests made using the Google Cast SDK.\u003c/p\u003e\n"]]],[],null,["# <GCKRequestDelegate> Protocol\n\n[Instance Methods](#pub-methods) \n\\\u003cGCKRequestDelegate\\\u003e Protocol Reference \n\nOverview\n--------\n\nThe [GCKRequest](/cast/docs/reference/ios/interface_g_c_k_request \"An object for tracking an asynchronous request. \") delegate protocol.\n\nSince\n: 3.0\n\nInherits \\\u003cNSObjectNSObject\\\u003e.\n\n|--------|-------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (void) | - [requestDidComplete:](/cast/docs/reference/ios/protocol_g_c_k_request_delegate-p#a9c6e7715c587fdd087739d610bf8ce71) |\n| | Called when the request has successfully completed. [More...](#a9c6e7715c587fdd087739d610bf8ce71) |\n| ||\n| (void) | - [request:didFailWithError:](/cast/docs/reference/ios/protocol_g_c_k_request_delegate-p#a1b698b8223fd7101ca187309f755cf7b) |\n| | Called when the request has failed. [More...](#a1b698b8223fd7101ca187309f755cf7b) |\n| ||\n| (void) | - [request:didAbortWithReason:](/cast/docs/reference/ios/protocol_g_c_k_request_delegate-p#a97196a5186c90fb0f825c3afbfbf663b) |\n| | Called when the request is no longer being tracked. [More...](#a97196a5186c90fb0f825c3afbfbf663b) |\n| ||\n\nMethod Detail\n-------------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| |------------------------------|---|---------------------------------------------------------------------|-----------|---| | - (void) requestDidComplete: | | ([GCKRequest](/cast/docs/reference/ios/interface_g_c_k_request) \\*) | *request* | | | optional |\n\nCalled when the request has successfully completed.\n\nParameters\n:\n\n |---------|--------------|\n | request | The request. |\n\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| |-------------------|---|---------------------------------------------------------------------|-----------| | - (void) request: | | ([GCKRequest](/cast/docs/reference/ios/interface_g_c_k_request) \\*) | *request* | | didFailWithError: | | ([GCKError](/cast/docs/reference/ios/interface_g_c_k_error) \\*) | *error* | | | | | | | optional |\n\nCalled when the request has failed.\n\nParameters\n:\n\n |---------|-----------------------------------|\n | request | The request. |\n | error | The error describing the failure. |\n\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| |---------------------|---|---------------------------------------------------------------------|---------------| | - (void) request: | | ([GCKRequest](/cast/docs/reference/ios/interface_g_c_k_request) \\*) | *request* | | didAbortWithReason: | | (GCKRequestAbortReason) | *abortReason* | | | | | | | optional |\n\nCalled when the request is no longer being tracked.\n\nIt does not guarantee that the request has succeed or failed.\n\nParameters\n:\n\n |-------------|--------------------------------------------------------|\n | request | The request. |\n | abortReason | The reason why the request is no longer being tracked. |"]]