
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-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.
The newest version!
package org.bluez;
import org.bluez.exceptions.BluezCanceledException;
import org.bluez.exceptions.BluezRejectedException;
import org.freedesktop.dbus.DBusPath;
import org.freedesktop.dbus.FileDescriptor;
import org.freedesktop.dbus.interfaces.DBusInterface;
import org.freedesktop.dbus.types.Variant;
import java.util.Map;
/**
* File generated - 2023-02-20.
* 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 device
* @param fd fd
* @param _fd_properties fd_properties
*
* @throws BluezRejectedException when operation rejected
* @throws BluezCanceledException when operation canceled
*/
void NewConnection(DBusPath _device, FileDescriptor 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 device
*
* @throws BluezRejectedException when operation rejected
* @throws BluezCanceledException when operation canceled
*/
void RequestDisconnection(DBusPath _device) throws BluezRejectedException, BluezCanceledException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy