Bixby Developer Center

Guides
References

device-location-access

optional

Specifies that you are requesting device-location-access in the permission-link component. You must also declare and properly set up this permission in your capsule.bxb file. For more information, see Grant Capsule Permissions in the Setting Up Your Capsule topic.

If you request for this permission with this component, a location icon appears with the text.

Example

...
permission-link {
text (View results based on location) // required
device-location-access
on-allow {
intent {
goal {
myRadioPlayer.PlayRadio @context (Outer)
}
value {
myRadioPlayer.PlayRadio.Local (true)
}
}
}
on-deny { // optional
intent {
goal {
myRadioPlayer.PlayRadio @context (Outer)
}
value {
myRadioPlayer.PlayRadio.Local (false)
}
}
}
}

This is what the component looks like with the icon on several devices:

Permission link component requesting `device-location-access` on mobile, fridge, and watch devices