Blob: org.bluez.AgentManager.rst

Blob id: 77373c0153fd6f95d9fd0358e8e00485701a0966

Size: 2.0 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
======================
org.bluez.AgentManager
======================

------------------------------------------
BlueZ D-Bus AgentManager API documentation
------------------------------------------

:Version: BlueZ
:Date: October 2023
:Manual section: 5
:Manual group: Linux System Administration

Interface
=========

:Service:	org.bluez
:Interface:	org.bluez.AgentManager1
:Object path:	/org/bluez

Methods
-------

void RegisterAgent(object agent, string capability)
```````````````````````````````````````````````````

Registers pairing agent.

The object path defines the path of the agent that will be called when user
input is needed and must implement **org.bluez.Agent(5)** interface.

Every application can register its own agent and for all actions triggered by
that application its agent is used.

It is not required by an application to register an agent. If an application
does chooses to not register an agent, the default agent is used. This is on
most cases a good idea. Only application like a pairing wizard should register
their own agent.

An application can only register one agent. Multiple agents per application is
not supported.

Possible capability values:

:"":

	Fallback to "KeyboardDisplay".

:"DisplayOnly":
:"DisplayYesNo":
:"KeyboardOnly":
:"NoInputNoOutput":
:"KeyboardDisplay":

Possible errors:

:org.bluez.Error.InvalidArguments:
:org.bluez.Error.AlreadyExists:

void UnregisterAgent(object agent)
``````````````````````````````````

Unregisters an agent that has been previously registered using
**RegisterAgent**. The object path parameter must match the same value that has
been used on registration.

Possible errors:

:org.bluez.Error.DoesNotExist:

void RequestDefaultAgent(object agent)
``````````````````````````````````````

Requests to make the application agent the default agent. The application is
required to register an agent.

Special permission might be required to become the default agent.

Possible errors:

:org.bluez.Error.DoesNotExist: