Confirmed users
110
edits
m (→Publisher) |
|||
Line 24: | Line 24: | ||
* ''keyword'' is the key string subject of the connection. Only apps advertising themselves as able to connect through this keyword will receive a connection request (if the user allows to and the app fulfills the requirements specified in the ''rules'' argument). | * ''keyword'' is the key string subject of the connection. Only apps advertising themselves as able to connect through this keyword will receive a connection request (if the user allows to and the app fulfills the requirements specified in the ''rules'' argument). | ||
* ''rules'' (optional) is an object containing a set of constraints for the requested connection. Only apps fulfilling these constraints will receive a connection request. These rules may contain: | * ''rules'' (optional) is an object containing a set of constraints for the requested connection. Only apps fulfilling these constraints will receive a connection request. These rules may contain: | ||
** ''minimumAccessLevel'' is the minimum level of access (one of https://developer.mozilla.org/en-US/docs/Web/Apps/Manifest#type) that the | ** ''minimumAccessLevel'' is the minimum level of access (one of https://developer.mozilla.org/en-US/docs/Web/Apps/Manifest#type) that the subscriber app requires in order to be able to receive the connection request. The default value will be 'web'. | ||
** ''manifestURLs'' (array) can be used to set specific receivers by a list of manifestURLs. | ** ''manifestURLs'' (array) can be used to set specific receivers by a list of manifestURLs. | ||
** ''developers'' (array) list of objects identifying app authors whose apps are allowed to receive a connection request. | ** ''developers'' (array) list of objects identifying app authors whose apps are allowed to receive a connection request. |