Language

Context.BindServiceFlags.Of(Int64) Method

Definition

Creates a Context.BindServiceFlags instance from a 64-bit combination of binding flags. Bind.ExternalService is not supported because sign extension sets unintended bits. Use Context.BindExternalServiceLong instead.

[Android.Runtime.Register("of", "(J)Landroid/content/Context$BindServiceFlags;", "", ApiSince=34)]
public static Android.Content.Context.BindServiceFlags Of(long value);
[<Android.Runtime.Register("of", "(J)Landroid/content/Context$BindServiceFlags;", "", ApiSince=34)>]
static member Of : int64 -> Android.Content.Context.BindServiceFlags

Parameters

value
Int64

Zero or a bitwise combination of the numeric values of Bind.AutoCreate, Bind.DebugUnbind, Bind.NotForeground, Bind.AboveClient, Bind.AllowOomManagement, Bind.WaivePriority, Bind.Important, Bind.AdjustWithActivity, Bind.NotPerceptible, Bind.AllowActivityStarts, Bind.IncludeCapabilities, Bind.SharedIsolatedProcess, Bind.PackageIsolatedProcess, and Context.BindExternalServiceLong. Cast Bind values to long before combining them with long flags.

Returns

A Context.BindServiceFlags value that represents the supplied flags.

Attributes

Remarks

Creates a Context.BindServiceFlags instance from a 64-bit combination of binding flags. Bind.ExternalService is not supported because sign extension sets unintended bits. Use Context.BindExternalServiceLong instead.

Java documentation for android.content.Context.BindServiceFlags.of(long).

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