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 |
Inherited methods | |
---|---|
Public methods
of
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 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 , android.content.Context.BIND_BYPASS_USER_NETWORK_RESTRICTIONS, and android.content.Context.BIND_MATCH_QUARANTINED_COMPONENTS |
Returns | |
---|---|
Context.BindServiceFlags |
This value cannot be null . |