Package org.bluez

Interface Profile1

All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface
All Known Implementing Classes:
ProfileHandler

public interface Profile1 extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2023-02-20.
Based on bluez Documentation: profile-api.txt.

Service: unique name
Interface: org.bluez.Profile1

Object path:
freely definable

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    NewConnection(org.freedesktop.dbus.DBusPath _device, org.freedesktop.dbus.FileDescriptor fd, Map<String,org.freedesktop.dbus.types.Variant<?>> _fd_properties)
    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)

    void
    From bluez documentation:

    This method gets called when the service daemon
    unregisters the profile.
    void
    RequestDisconnection(org.freedesktop.dbus.DBusPath _device)
    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.

    Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface

    getObjectPath, isRemote
  • Method Details

    • Release

      void Release()
      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.

    • NewConnection

      void NewConnection(org.freedesktop.dbus.DBusPath _device, org.freedesktop.dbus.FileDescriptor fd, Map<String,org.freedesktop.dbus.types.Variant<?>> _fd_properties) throws BluezRejectedException, BluezCanceledException
      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)

      Parameters:
      _device - device
      fd - fd
      _fd_properties - fd_properties
      Throws:
      BluezRejectedException - when operation rejected
      BluezCanceledException - when operation canceled
    • RequestDisconnection

      void RequestDisconnection(org.freedesktop.dbus.DBusPath _device) 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.

      Parameters:
      _device - device
      Throws:
      BluezRejectedException - when operation rejected
      BluezCanceledException - when operation canceled