Giter Site home page Giter Site logo

acceleratekit's Introduction

Accelerate Kit Demo

Table of Contents

Introduction

The sample code describes how to use the HMS AccelerateKit SDK, including dispatch queues create, push work items into queues, release queues.

Main APIs in sample code:
1. Queues Create
dispatch_queue_create(): creates queues.
2. Push Work Items(blocks) into queues:
dispatch_async(): pushes work items into queue asynchronously.
dispatch_barrier_sync(): push work items into queue synchronously and make sure that all of work items, which has been pushed in the queue, should be finished.
3. Queues Release
dispatch_release(): releases queues.

Preparation

1. Register as a developer.

Before you get started, you must register as a HUAWEI developer and complete identity verification on [HUAWEI Developers](https://developer.huawei.com/consumer/en/). For details, please refer to [Registration and Verification](https://developer.huawei.com/consumer/en/doc/start/10104).

2. Create an app and apply for a agconnect-services.json.

Create an app and set package type to APK (android app). Apply for the agconnect-services.json file on HUAWEI Developers. For details, please refer to [Adding the AppGallery Connect Configuration File].
See details: [HUAWEI Accelerate Development Preparation](hhttps://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050980807)

3. Build

To build this sample, import the sample to Android Studio (3.x +), download agconnect-services.json from AppGallery Connect, and add the file to the app's root directory app of the demo app.

Installation

Download the sample code and open it in Android Studio. Ensure that your device has been connected to the internet and obtain the APK by building a project.

Function Use

You can tap buttons in your app to experience rich services of HUAWEI Accelerate Kit.

Supported Environments

Devices with Android 7.0 or later are recommended.

Result

After the four tasks are executed concurrently, the other four tasks are executed in serial mode.

License

The sample of HUAWEI Accelerate Kit has obtained the [Apache 2.0 license.](http://www.apache.org/licenses/LICENSE-2.0).

acceleratekit's People

Contributors

houweilong1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.