We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

示例代码

该Android Studio工程包含了各个接口的使用示例。提供如下能力:

  • 系统预置振动类型

    Haptics Engine将华为的线性马达振动能力封装成便于开发者使用的开放接口,帮助您快速实现应用内调用华为自研的线性马达振动能力。

    名称

    下载

    GitHub

    Android Studio示例代码

    huawei_hapticskit_demo.zip

    链接

  • 自定义振动类型

    增强Haptics Engine能力,通过接口设置参数自定义振动波形,并提供对振动波形的强度和锐度进行调节的能力,打造最佳的体验。

    名称

    下载

    GitHub

    Android Studio示例代码

    huawei_hapticsengine_demo.zip

    链接

Search
Enter a keyword.