Android Guides | Samples

Android.OS.TokenWatcher Class

Helper class that helps you use IBinder objects as reference counted tokens.

See Also: TokenWatcher

Syntax

[Android.Runtime.Register("android/os/TokenWatcher", DoNotGenerateAcw=true)]
public abstract class TokenWatcher : Object

Remarks

Helper class that helps you use IBinder objects as reference counted tokens. IBinders make good tokens because we find out when they are removed

[Android Documentation]

Requirements

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

The members of Android.OS.TokenWatcher are listed below.

See Also: Object

Public Constructors

Construct the TokenWatcher

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
IsAcquiredBoolean.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Acquire(IBinder, String)
Record that this token has been acquired.
abstract
Acquired()
Called when the number of active tokens goes from 0 to 1.
Cleanup(IBinder, Boolean)
Dump()
Dump(PrintWriter)
Release(IBinder)
abstract
Released()
Called when the number of active tokens goes from 1 to 0.