TokenWatcher Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TokenWatcher(Handler, String) |
Construct the TokenWatcher |
TokenWatcher(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
TokenWatcher(Handler, String)
Construct the TokenWatcher
[Android.Runtime.Register(".ctor", "(Landroid/os/Handler;Ljava/lang/String;)V", "")]
public TokenWatcher (Android.OS.Handler? h, string? tag);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Handler;Ljava/lang/String;)V", "")>]
new Android.OS.TokenWatcher : Android.OS.Handler * string -> Android.OS.TokenWatcher
Parameters
- h
- Handler
A handler to call #acquired
and #released
on. If you don't care, just call it like this, although your thread
will have to be a Looper thread.
new TokenWatcher(new Handler())
- tag
- String
A debugging tag for this TokenWatcher
- Attributes
Remarks
Construct the TokenWatcher
Java documentation for android.os.TokenWatcher.TokenWatcher(android.os.Handler, java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
TokenWatcher(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected TokenWatcher (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.OS.TokenWatcher : nativeint * Android.Runtime.JniHandleOwnership -> Android.OS.TokenWatcher
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.