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
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-12-06 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]