Multiplicity - NativeNov 24, 2016

Multiplicity sample application shows how to communicate a provider application with multiple consumer applications using Accessory SDK as one of possible multiplicity combinations. This sample application is a companion type and is provided in two types.

Provider (Android) and Consumer (Gear)

Figure 1 Multiplicity - Provider (Android) and Consumer (Gear)
Figure 1 Multiplicity - Provider (Android) and Consumer (Gear)

This sample application has two parts:

  • MultiplicityProvider

    • Works in host device and has no UI.

    • Includes two providers having different Accessory Service Profile.

    • Accepts a receiving service connection request from the Gear device independently.

    • Replies to a receiving command from Gear device independently.

  • MultiplicityConsumer

    • Works in Gear device and has UI.

    • Initiates service connection request and send commands to host device independently.

    • Shows a received response to user independently.

Sender (Gear) and Receiver (Android)

Figure 2 Multiplicity - Provider (Gear) and Consumer (Android)
Figure 2 Multiplicity - Provider (Gear) and Consumer (Android)

This sample application has two parts:

  • MultiplicityProvider

    • Works in Gear device.

    • Includes two providers having different Accessory Service Profile.

    • Accepts a receiving service connection request from host device independently.

    • Replies to a receiving command from Host device independently.

  • MultiplicityConsumer

    • Works in host device and has UI.

    • Initiates service connection request and send commands to the Gear device.

    • Shows a received response to user independently.