Stay organized with collections
Save and categorize content based on your preferences.
BindServiceFlags
class 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
of
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]