org.bluez.Profile1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluez-dbus Show documentation
Show all versions of bluez-dbus Show documentation
Java native bluetooth library which uses bluez via dbus (linux only)
package org.bluez;
import java.util.Map;
import org.bluez.exceptions.BluezCanceledException;
import org.bluez.exceptions.BluezRejectedException;
import org.freedesktop.dbus.DBusPath;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.types.Variant;
/**
* File generated - 2018-07-25.
* Based on bluez Documentation: profile-api.txt.
*
* Service: unique name
* Interface: org.bluez.Profile1
*
* Object path:
* freely definable
*
*/
public interface Profile1 extends DBusInterface {
/**
* From bluez documentation:
*
* This method gets called when the service daemon
* unregisters the profile. A profile can use it to do
* cleanup tasks. There is no need to unregister the
* profile, because when this method gets called it has
* already been unregistered.
*
*/
void Release();
/**
* From bluez documentation:
*
* This method gets called when a new service level
* connection has been made and authorized.
*
* Common fd_properties:
*
* uint16 Version Profile version (optional)
* uint16 Features Profile features (optional)
*
*
* @param _device
* @param fd
* @param _fd_properties
*
* @throws BluezRejectedException when operation rejected
* @throws BluezCanceledException when operation canceled
*/
void NewConnection(DBusPath _device, Object fd, Map> _fd_properties) throws BluezRejectedException, BluezCanceledException;
/**
* From bluez documentation:
*
* This method gets called when a profile gets
* disconnected.
*
* The file descriptor is no longer owned by the service
* daemon and the profile implementation needs to take
* care of cleaning up all connections.
*
* If multiple file descriptors are indicated via
* NewConnection, it is expected that all of them
* are disconnected before returning from this
* method call.
*
*
* @param _device
*
* @throws BluezRejectedException when operation rejected
* @throws BluezCanceledException when operation canceled
*/
void RequestDisconnection(DBusPath _device) throws BluezRejectedException, BluezCanceledException;
}