org.bluez.obex.Client1 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.obex;
import java.util.Map;
import org.bluez.exceptions.BluezFailedException;
import org.bluez.exceptions.BluezInvalidArgumentsException;
import org.bluez.exceptions.BluezNotAuthorizedException;
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: obex-api.txt.
*
* Service: org.bluez.obex
* Interface: org.bluez.obex.Client1
*
* Object path:
* /org/bluez/obex
*
*/
public interface Client1 extends DBusInterface {
/**
* From bluez documentation:
*
* Create a new OBEX session for the given remote address.
*
* The last parameter is a dictionary to hold optional or
* type-specific parameters. Typical parameters that can
* be set in this dictionary include the following:
*
* string "Target" : type of session to be created
* string "Source" : local address to be used
* byte "Channel"
*
* The currently supported targets are the following:
*
* "ftp"
* "map"
* "opp"
* "pbap"
* "sync"
*
*
* @param _destination
* @param _args
*
* @throws BluezInvalidArgumentsException when argument is invalid
* @throws BluezFailedException on failure
*/
DBusPath CreateSession(String _destination, Map> _args) throws BluezInvalidArgumentsException, BluezFailedException;
/**
* From bluez documentation:
*
* Unregister session and abort pending transfers.
*
*
* @param _session
*
* @throws BluezInvalidArgumentsException when argument is invalid
* @throws BluezNotAuthorizedException when not authorized
*/
void RemoveSession(DBusPath _session) throws BluezInvalidArgumentsException, BluezNotAuthorizedException;
}