Added in API level 34
BindServiceFlags
class BindServiceFlags
kotlin.Any | |
↳ | 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 |
Build |
Public methods
of
Added in API level 34
static fun of(value: Long): Context.BindServiceFlags
Build BindServiceFlags
from BIND_* FLAGS. Note, 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 BIND_EXTERNAL_SERVICE_LONG
instead.
Parameters | |
---|---|
value |
Long: Value is either 0 or a combination of android.content.Context#BIND_AUTO_CREATE , android.content.Context#BIND_DEBUG_UNBIND , android.content.Context#BIND_NOT_FOREGROUND , android.content.Context#BIND_ABOVE_CLIENT , android.content.Context#BIND_ALLOW_OOM_MANAGEMENT , android.content.Context#BIND_WAIVE_PRIORITY , android.content.Context#BIND_IMPORTANT , android.content.Context#BIND_ADJUST_WITH_ACTIVITY , android.content.Context#BIND_NOT_PERCEPTIBLE , android.content.Context#BIND_ALLOW_ACTIVITY_STARTS , android.content.Context#BIND_INCLUDE_CAPABILITIES , android.content.Context#BIND_SHARED_ISOLATED_PROCESS , android.content.Context#BIND_PACKAGE_ISOLATED_PROCESS , android.content.Context#BIND_EXTERNAL_SERVICE_LONG , android.content.Context.BIND_BYPASS_USER_NETWORK_RESTRICTIONS, and android.content.Context.BIND_MATCH_QUARANTINED_COMPONENTS |
Return | |
---|---|
Context.BindServiceFlags |
This value cannot be null . |