Skip to content

[Question] Is there a way to conditionally register the @RegisterAiService ? #2154

@nit0906

Description

@nit0906

I am looking for a way to conditionally register an @RegisterAiService based on a build/env variable. Could not find any documentation if something like this is supported.

I tried using @IfBuildProperty - but that does not seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedtriage/needs-feedbackWe are waiting for feedback.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions