Context.BindServiceFlags.Of(Int64) Method

Definition

Build BindServiceFlags from BIND_* FLAGS. Note, Context.BIND_EXTERNAL_SERVICE is not supported in this method, because it has the highest integer bit set and cause wrong flags to be set. Use Context.BIND_EXTERNAL_SERVICE_LONG 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

Value is either 0 or a combination of the following: Context.BIND_AUTO_CREATE Context.BIND_DEBUG_UNBIND Context.BIND_NOT_FOREGROUND Context.BIND_ABOVE_CLIENT Context.BIND_ALLOW_OOM_MANAGEMENT Context.BIND_WAIVE_PRIORITY Context.BIND_IMPORTANT Context.BIND_ADJUST_WITH_ACTIVITY Context.BIND_NOT_PERCEPTIBLE Context.BIND_ALLOW_ACTIVITY_STARTS Context.BIND_INCLUDE_CAPABILITIES Context.BIND_SHARED_ISOLATED_PROCESS Context.BIND_PACKAGE_ISOLATED_PROCESS Context.BIND_EXTERNAL_SERVICE_LONG

Returns

A Context.BindServiceFlags value that represents the supplied flags.

Attributes

Remarks

Build BindServiceFlags from BIND_* FLAGS. Note, Context.BIND_EXTERNAL_SERVICE is not supported in this method, because it has the highest integer bit set and cause wrong flags to be set. Use Context.BIND_EXTERNAL_SERVICE_LONG 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