Android.Accounts.IAccountManagerFuture.GetResult Method
Accessor for the future result the Android.Accounts.IAccountManagerFuture represents.

Syntax

[Android.Runtime.Register("getResult", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetGetResult_JLjava_util_concurrent_TimeUnit_Handler:Android.Accounts.IAccountManagerFutureInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object GetResult (long timeout, Java.Util.Concurrent.TimeUnit unit)

Parameters

timeout
the maximum time to wait
unit
the time unit of the timeout argument. This must not be null.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Accounts.OperationCanceledExceptionif the request was canceled for any reason
Android.Accounts.AuthenticatorExceptionif there was an error communicating with the authenticator or if the authenticator returned an invalid response
Java.IO.IOExceptionif the authenticator returned an error response that indicates that it encountered an IOException while communicating with the authentication server

Remarks

Accessor for the future result the Android.Accounts.IAccountManagerFuture represents. This call will block until the result is available. In order to check if the result is available without blocking, one may call IAccountManagerFuture.IsDone and IAccountManagerFuture.IsCancelled. If the request that generated this result fails or is canceled then an exception will be thrown rather than the call returning normally. If a timeout is specified then the request will automatically be canceled if it does not complete in that amount of time.

[Android Documentation]

Requirements

Namespace: Android.Accounts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5