org.bluez.MediaEndpoint1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluez-dbus-osgi Show documentation
Show all versions of bluez-dbus-osgi Show documentation
Java native bluetooth library which uses bluez via dbus (linux only).
This is the OSGi compliant bundle of all required libraries in one bundle.
package org.bluez;
import java.util.Map;
import org.freedesktop.dbus.DBusPath;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.types.Variant;
/**
* File generated - 2020-06-18.
* Based on bluez Documentation: media-api.txt.
*
* Service: unique name (Server role)
* Interface: org.bluez.MediaEndpoint1
*
* Object path:
* freely definable (Server role)
* [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/sepX
* (Client role)
*
* Supported properties:
*
* string UUID [readonly, optional]:
*
* UUID of the profile which the endpoint is for.
*
* byte Codec [readonly, optional]:
*
* Assigned number of codec that the endpoint implements.
* The values should match the profile specification which
* is indicated by the UUID.
*
* array{byte} Capabilities [readonly, optional]:
*
* Capabilities blob, it is used as it is so the size and
* byte order must match.
*
* object Device [readonly, optional]:
*
* Device object which the endpoint is belongs to.
*
* bool DelayReporting [readonly, optional]:
*
* Indicates if endpoint supports Delay Reporting.
*
*
*/
public interface MediaEndpoint1 extends DBusInterface {
/**
* From bluez documentation:
*
* Set configuration for the transport.
*
* For client role transport must be set with a server
* endpoint oject which will be configured and the
* properties must contain the following properties:
*
* array{byte} Capabilities
*
*
* @param _transport transport
* @param _properties properties
*/
void SetConfiguration(DBusPath _transport, Map> _properties);
/**
* From bluez documentation:
*
* Select preferable configuration from the supported
* capabilities.
*
* Returns a configuration which can be used to setup
* a transport.
*
* Note: There is no need to cache the selected
* configuration since on success the configuration is
* send back as parameter of SetConfiguration.
*
*
* @param _capabilities capabilities
*
* @return byte[] - maybe null
*/
byte[] SelectConfiguration(byte[] _capabilities);
/**
* From bluez documentation:
*
* Clear transport configuration.
*
*
* @param _transport transport
*/
void ClearConfiguration(DBusPath _transport);
/**
* From bluez documentation:
*
* This method gets called when the service daemon
* unregisters the endpoint. An endpoint can use it to do
* cleanup tasks. There is no need to unregister the
* endpoint, because when this method gets called it has
* already been unregistered.
*
*/
void Release();
}