Skip to content

Per instance attribute visibility #502

@spacecheese

Description

@spacecheese

Is your feature request related to a problem? Please describe.
The _Property, _Signal and _Method "disabled" fields are not context aware and therefore a property, signal or method may only be hidden for all instances of a ServiceInterface. This is problematic when implementing interfaces with optional properties (for example org.bluez.LEAdvertisement) where ideally not all instances would include the same optional attributes.

Describe the solution you'd like
disabled could be provided by a Callable[[ServiceInterface], bool] callback. Alternatively the ServiceInterface could maintain a record of which attributes are disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions