AsyncFacebookRunner.RequestListener
最新版本的 SDK 已不再提供此課程。
有此級別的更新版本。前往查看 最新版本。

Callback interface for API requests.

Each method includes a 'state' parameter that identifies the calling request. It will be set to the value passed when originally calling the request method, or null if none was passed.

This interface is deprecated. See Facebook and Request for more info.

套件:android
執行個體方法
onComplete(String, Object)

Called when a request completes with the given response.

Executed by a background thread: do not update the UI in this method.

public void onComplete(String response, Object state)
參數說明
response
state
onIOException(IOException, Object)

Called when a request has a network or request error.

Executed by a background thread: do not update the UI in this method.

public void onIOException(IOException e, Object state)
參數說明
e
state
onFileNotFoundException(FileNotFoundException, Object)

Called when a request fails because the requested resource is invalid or does not exist.

Executed by a background thread: do not update the UI in this method.

public void onFileNotFoundException(FileNotFoundException e, Object state)
參數說明
e
state
onMalformedURLException(MalformedURLException, Object)

Called if an invalid graph path is provided (which may result in a malformed URL).

Executed by a background thread: do not update the UI in this method.

public void onMalformedURLException(MalformedURLException e, Object state)
參數說明
e
state
onFacebookError(FacebookError, Object)

Called when the server-side Facebook method fails.

Executed by a background thread: do not update the UI in this method.

public void onFacebookError(FacebookError e, Object state)
參數說明
e
state