Partager via


ThreadGroup.AllowThreadSuspension(Boolean) Method

Definition

Caution

deprecated

Used by VM to control lowmem implicit suspension.

[Android.Runtime.Register("allowThreadSuspension", "(Z)Z", "GetAllowThreadSuspension_ZHandler")]
[System.Obsolete("deprecated")]
public virtual bool AllowThreadSuspension (bool b);
[<Android.Runtime.Register("allowThreadSuspension", "(Z)Z", "GetAllowThreadSuspension_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member AllowThreadSuspension : bool -> bool
override this.AllowThreadSuspension : bool -> bool

Parameters

b
Boolean

boolean to allow or disallow suspension

Returns

true on success

Attributes

Remarks

Used by VM to control lowmem implicit suspension.

Added in 1.1.

This member is deprecated. The definition of this call depends on #suspend, which is deprecated. Further, the behavior of this call was never specified.

Java documentation for java.lang.ThreadGroup.allowThreadSuspension(boolean).

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