vibration_ohos

Creator: coderz1093

Last updated:

0 purchases

vibration_ohos Image
vibration_ohos Images

Languages

Categories

Add to Cart

Description:

vibration ohos

vibration_ohos #
The OpenHarmony implementation of vibration.
vibration 在 OpenHarmony 平台的实现。
Add the following permission settings to your project's module.json5 file.
在你的项目的 module.json5 文件中增加以下权限设置。
"requestPermissions": [
{"name" : "ohos.permission.VIBRATE"},
]
copied to clipboard
Usage #
dependencies:
vibration: any
vibration_ohos: any
copied to clipboard
vibrateEffect and vibrateAttribute are only exist in VibrationOhos.
(VibrationPlatform.instance as VibrationOhos).vibrate(
vibrateEffect: const VibratePreset(count: 100),
vibrateAttribute: const VibrateAttribute(
usage: 'alarm',
),
);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.