QtAndroid Namespace
The QtAndroid namespace provides miscellaneous functions to aid Android development. More...
| Header: | #include <QtAndroid> |
| qmake: | QT += androidextras |
| Since: | Qt 5.3 |
This namespace was introduced in Qt 5.3.
Types
| enum class | BindFlag { None, AutoCreate, DebugUnbind, NotForeground, AboveClient, …, ExternalService } |
| enum class | PermissionResult { Granted, Denied } |
| typedef | PermissionResultCallback |
| typedef | PermissionResultMap |
| typedef | Runnable |
Detailed Description
Type Documentation
enum class QtAndroid::BindFlag
This enum is used with QtAndroid::bindService to describe the mode in which the binding is performed.
| Constant | Value | Description |
|---|---|---|
QtAndroid::BindFlag::None | 0x00000000 | No options. |
QtAndroid::BindFlag::AutoCreate | 0x00000001 | Automatically creates the service as long as the binding exist. See BIND_AUTO_CREATE documentation for more details. |
QtAndroid::BindFlag::DebugUnbind | 0x00000002 | Include debugging help for mismatched calls to unbind. See BIND_DEBUG_UNBIND documentation for more details. |
QtAndroid::BindFlag::NotForeground | 0x00000004 | Don't allow this binding to raise the target service's process to the foreground scheduling priority. See BIND_NOT_FOREGROUND documentation for more details. |
QtAndroid::BindFlag::AboveClient | 0x00000008 | Indicates that the client application binding to this service considers the service to be more important than the app itself. See BIND_ABOVE_CLIENT documentation for more details. |
QtAndroid::BindFlag::AllowOomManagement | 0x00000010 | Allow the process hosting the bound service to go through its normal memory management. See BIND_ALLOW_OOM_MANAGEMENT documentation for more details. |
QtAndroid::BindFlag::WaivePriority | 0x00000020 | Don't impact the scheduling or memory management priority of the target service's hosting process. See BIND_WAIVE_PRIORITY documentation for more details. |
QtAndroid::BindFlag::Important | 0x00000040 | This service is assigned a higher priority so that it is available to the client when needed. See BIND_IMPORTANT documentation for more details. |
QtAndroid::BindFlag::AdjustWithActivity | 0x00000080 | If binding from an activity, allow the target service's process importance to be raised based on whether the activity is visible to the user. See BIND_ADJUST_WITH_ACTIVITY documentation for more details. |
QtAndroid::BindFlag::ExternalService | -2147483648 | The service being bound is an isolated, external service. See BIND_EXTERNAL_SERVICE documentation for more details. |
This enum was introduced or modified in Qt 5.10.
enum class QtAndroid::PermissionResult
This enum is used to describe the permission status.
| Constant | Value | Description |
|---|---|---|
QtAndroid::PermissionResult::Granted | 0 | The permission was granted. |
QtAndroid::PermissionResult::Denied | 1 | The permission was denied. |
This enum was introduced or modified in Qt 5.10.
typedef QtAndroid::PermissionResultCallback
Synonym for std::function<void(const PermissionResultMap &)>.
typedef QtAndroid::PermissionResultMap
Synonym for QHash<QString, PermissionResult>.
typedef QtAndroid::Runnable
Synonym for std::function<void()>.