Open GoPro SDK

GoPro Logo

Welcome to the API Documentation for the TODO link to Maven.

This document is strictly about library usage. For a high level overview and a demo app, see the OGP KMP SDK on Github.

The general procedure is:

  1. Initialize the SDK

     // App context is platform-specific context passed from application
    val sdk = OgpSdk(Dispatchers.IO, appContext)
  2. Discover and connect to a GoPro Device. A successful connection will store it in the SDK's (runtime) database.

     // Discover and take the first device we find
    val device = sdk.discover(NetworkType.BLE).first()

    // Connect (assume success)
    val goproId = sdk.connect(device).getOrThrow()
  3. Now that the device is connected and stored in the SDK, retrieve the GoPro object from the SDK. This can be done any number of times after connection.

     // Now retrieve the gopro (assume success)
    val gopro = sdk.getGoPro(goproId).getOrThrow()
  4. Manipulate the retrieved GoPro as desired

     // Set the shutter
    gopro.commands.setShutter(true)

See the relevant packages below for more detailed information on specific objects.

GoPro Logo

Welcome to the API Documentation for the TODO link to Maven.

This document is strictly about library usage. For a high level overview and a demo app, see the OGP KMP SDK on Github.

The general procedure is:

  1. Initialize the SDK

     // App context is platform-specific context passed from application
    val sdk = OgpSdk(Dispatchers.IO, appContext)
  2. Discover and connect to a GoPro Device. A successful connection will store it in the SDK's (runtime) database.

     // Discover and take the first device we find
    val device = sdk.discover(NetworkType.BLE).first()

    // Connect (assume success)
    val goproId = sdk.connect(device).getOrThrow()
  3. Now that the device is connected and stored in the SDK, retrieve the GoPro object from the SDK. This can be done any number of times after connection.

     // Now retrieve the gopro (assume success)
    val gopro = sdk.getGoPro(goproId).getOrThrow()
  4. Manipulate the retrieved GoPro as desired

     // Set the shutter
    gopro.commands.setShutter(true)

See the relevant packages below for more detailed information on specific objects.

GoPro Logo

Welcome to the API Documentation for the TODO link to Maven.

This document is strictly about library usage. For a high level overview and a demo app, see the OGP KMP SDK on Github.

The general procedure is:

  1. Initialize the SDK

     // App context is platform-specific context passed from application
    val sdk = OgpSdk(Dispatchers.IO, appContext)
  2. Discover and connect to a GoPro Device. A successful connection will store it in the SDK's (runtime) database.

     // Discover and take the first device we find
    val device = sdk.discover(NetworkType.BLE).first()

    // Connect (assume success)
    val goproId = sdk.connect(device).getOrThrow()
  3. Now that the device is connected and stored in the SDK, retrieve the GoPro object from the SDK. This can be done any number of times after connection.

     // Now retrieve the gopro (assume success)
    val gopro = sdk.getGoPro(goproId).getOrThrow()
  4. Manipulate the retrieved GoPro as desired

     // Set the shutter
    gopro.commands.setShutter(true)

See the relevant packages below for more detailed information on specific objects.

Packages

Link copied to clipboard
apple
common
Link copied to clipboard
common

This package contains components that relate to the connected GoPro including methods to operate on it.

Link copied to clipboard
common

This package contains enums and other data entities that are used to operate on the GoPro.