Added in API level 34

Context.BindServiceFlags


public static final class Context.BindServiceFlags
extends Object

java.lang.Object
   ↳ android.content.Context.BindServiceFlags


Specific flags used for bindService() call, which encapsulates a 64 bits long integer. Call BindServiceFlags.of(long) to obtain an object of BindServiceFlags.

Summary

Public methods

static Context.BindServiceFlags of(long value)

Build BindServiceFlags from BIND_* FLAGS.

Inherited methods

Public methods

of

Added in API level 34
public static Context.BindServiceFlags of (long value)

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.

Parameters
value long: Value is either 0 or a combination of the following:
Returns
Context.BindServiceFlags This value cannot be null.