Documentation
¶
Overview ¶
Package app is an NSGo app made to be embedded: it greets the user its host names in its launch parameters, shows the host's messages, calls and posts to the host, shows the host's own badge as a native component, opens a link the host routes, and themes itself with the host's tokens, locale and text size. The Go desktop host in examples/embed-desktop and the page in examples/embed-web show it twice; examples/embedded builds it for the iOS and Android hosts and, with host.js as its page's host, for the web.
Index ¶
Constants ¶
const Badge = "host.badge"
Badge is the native component a host registers for the app: a view of the host's own showing the "count" prop, which emits "tap".
const OrderURL = "https://example.com/orders/42"
OrderURL is the link the app opens, which a host routes to its own order page.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.