Bixby Developer Center

Guides
References

image-url

optionalvalue optional

URL of image to display. Bixby supports the same image types as Android: BMP, GIF, JPEG. PNG, WebP, and HEIF. PNG or JPG image types are recommended.

Examples

image-url { 
template ("http://foo-image.png")
}
            image-url (images/icons/hotel-icon.png)

View on GitHub

      image-url {
template ("./images/earthquake.png")
}

View on GitHub

          image-url {
template ("#{value(meme.imageResultUrl)}")
}

View on GitHub

Note

If you need to display a dynamic SVG image that is generated inside a capsule action, you can embed the SVG by converting the SVG data to an image source. Prefix image with data and use base64 to encode the SVG string:

var url = `data:image/svg+xml;base64,${base64.encode(pureSvg)}`

In your view file, you would call the URL normally:

content {
section {
image {
url(this.url)
}
}
}

This is useful, for example, if you want to display the current stock prices in a stock market capsule.

Child Keys

macro
optional
Defines a layout, a portion of a layout, or a dialog with a macro
template
optional
Text to be passed
template-macro
optional
Encapsulates dialog logic that normally would lead to duplication