RemoteCallbackList.RegisteredCallbackCount Property

Definition

Returns the number of registered callbacks.

public virtual int RegisteredCallbackCount { [Android.Runtime.Register("getRegisteredCallbackCount", "()I", "GetGetRegisteredCallbackCountHandler")] get; }
[<get: Android.Runtime.Register("getRegisteredCallbackCount", "()I", "GetGetRegisteredCallbackCountHandler")>]
member this.RegisteredCallbackCount : int

Property Value

The size.

Attributes

Remarks

Returns the number of registered callbacks. Note that the number of registered callbacks may differ from the value returned by #beginBroadcast() since the former returns the number of callbacks registered at the time of the call and the second the number of callback to which the broadcast will be delivered.

This function is useful to decide whether to schedule a broadcast if this requires doing some work which otherwise would not be performed.

Java documentation for android.os.RemoteCallbackList.getRegisteredCallbackCount().

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