public interface

Peripheral.Provider

 com.parrot.drone.groundsdk.device.peripheral.Peripheral.Provider

Subclasses:

Drone, RemoteControl

Overview

Interface for an object capable of providing a Peripheral.

Summary

Methods
public PeripheralgetPeripheral(Class<Peripheral> peripheralClass)

Gets a peripheral.

public Ref<Peripheral>getPeripheral(Class<Peripheral> peripheralClass, Ref.Observer<Peripheral> observer)

Gets a peripheral and registers an observer notified each time it changes.

Methods

public Peripheral getPeripheral(Class<Peripheral> peripheralClass)

Gets a peripheral.

Parameters:

peripheralClass: class of the peripheral

Returns:

requested peripheral, or null if it's not present

public Ref<Peripheral> getPeripheral(Class<Peripheral> peripheralClass, Ref.Observer<Peripheral> observer)

Gets a peripheral and registers an observer notified each time it changes.

Parameters:

peripheralClass: class of the peripheral
observer: observer to notify when the peripheral changes

Returns:

reference to the requested peripheral