Documentation
¶
Overview ¶
Package guide holds the complete example on each plugin's guide page, compiled here so that they can't go stale. tools/docref copies each file into its page, as package main.
Index ¶
- Variables
- type AboutApp
- type AboutPhone
- type Agenda
- type Ambient
- type Arrivals
- type AskOnce
- type BoardingPass
- type Booking
- type CallUs
- type CancelOrder
- type CardNumber
- type Consent
- type Counter
- type DarkHero
- type Delivery
- type Detector
- type Directions
- type Feedback
- type Figures
- type FirstScreen
- type FixWifi
- type Floors
- type GiftCode
- type Inbox
- type Kiosk
- type KitchenScreen
- type Level
- type LiveOrders
- type Membership
- type MenuIcons
- type Moment
- type Nearby
- type NightlySync
- type Note
- type Notes
- type Notifications
- type Online
- type OrderReady
- type Orders
- type OrdersSplit
- type OurStory
- type PhoneNetwork
- type Podcast
- type Prices
- type PrintReceipt
- type RateUs
- type ReadAloud
- type ReadTag
- type Recipe
- type Remind
- type Reservations
- type Review
- type SaveToPhotos
- type ScanCode
- type SendGift
- type SendReceipt
- type Session
- type Showroom
- type SplitBill
- type Steps
- type Sunset
- type TextFriend
- type Thumbnail
- type Till
- type Tour
- type Trip
- type Unread
- type Upload
- type Viewfinder
- type VoiceMemo
- type VoiceSearch
- type Welcome
- type WhereAmI
- type WorkAccount
Constants ¶
This section is empty.
Variables ¶
var Screens = map[string]ui.Component{ "appinfo": AboutApp{}, "appreview": RateUs{}, "appstate": LiveOrders{}, "audio": AskOnce{}, "backgroundtasks": NightlySync{}, "badge": Unread{}, "barcode": ScanCode{}, "biometrics": Figures{}, "bluetooth": Nearby{}, "browser": OurStory{}, "calendar": Booking{}, "camera": Review{}, "clipboard": GiftCode{}, "contacts": SendGift{}, "device": AboutPhone{}, "dialog": CancelOrder{}, "filepicker": Upload{}, "filesystem": Notes{}, "geofencing": Arrivals{}, "geolocation": WhereAmI{}, "googlemaps": Delivery{}, "haptics": Feedback{}, "keepawake": Till{}, "keyboard": Note{}, "linking": CallUs{}, "localnotifications": Remind{}, "motion": Level{}, "network": Online{}, "nfc": ReadTag{}, "orientation": KitchenScreen{}, "purchases": Membership{}, "push": Notifications{}, "screenreader": OrderReady{}, "securestore": Session{}, "share": SplitBill{}, "signin": Welcome{}, "speech": ReadAloud{}, "speechrecognition": VoiceSearch{}, "splashscreen": FirstScreen{}, "statusbar": DarkHero{}, "barometer": Floors{}, "lightsensor": Ambient{}, "magnetometer": Detector{}, "pedometer": Steps{}, "brightness": BoardingPass{}, "navigationbar": Kiosk{}, "screencapture": CardNumber{}, "intentlauncher": FixWifi{}, "mailcomposer": SendReceipt{}, "printing": PrintReceipt{}, "sms": TextFriend{}, "cellular": PhoneNetwork{}, "imagemanipulator": Thumbnail{}, "localization": Prices{}, "medialibrary": SaveToPhotos{}, "cameraview": Viewfinder{}, "audioplayer": Podcast{}, "audiorecorder": VoiceMemo{}, "calendarevents": Agenda{}, "backgroundlocation": Trip{}, "oauth": WorkAccount{}, "applemaps": Directions{}, "receiveshare": Inbox{}, "sqlite": Orders{}, "symbols": MenuIcons{}, "scene": Showroom{}, "meshgradient": Sunset{}, "livephoto": Moment{}, "hinge": Recipe{}, "splitview": OrdersSplit{}, "storage": Counter{}, "trackingconsent": Consent{}, "video": Tour{}, "webview": Reservations{}, }
Screens are the examples, by plugin.
Functions ¶
This section is empty.
Types ¶
type AboutApp ¶
type AboutApp struct{}
AboutApp shows the version people quote when they ask for help.
type Ambient ¶
type Ambient struct{}
Ambient says how bright the room is. iOS has no such reading, so it gets a line of its own.
type AskOnce ¶
type AskOnce struct{}
AskOnce listens for one spoken turn and plays it back. A real app sends the WAV to its server and plays the answer instead.
type BoardingPass ¶
type BoardingPass struct{}
BoardingPass turns the screen up while its code is showing, so a scanner can read it, and puts it back on leaving.
type Booking ¶
type Booking struct{}
Booking adds a table to their calendar, on the system's screen.
type CardNumber ¶
type CardNumber struct{}
CardNumber is protected while it's showing, and counts any screenshots.
type DarkHero ¶
type DarkHero struct{}
DarkHero sets light icons over a dark screen, and hands back on leaving.
type Directions ¶
type Directions struct{}
Directions shows the cafe on Apple Maps, and a list of the way on Android, where there's no Apple Maps.
type Feedback ¶
type Feedback struct{}
Feedback plays each kind. Haptics return at once, so handlers call them directly.
type FirstScreen ¶
type FirstScreen struct{}
FirstScreen keeps the launch color up until its data is here.
type FixWifi ¶
type FixWifi struct{}
FixWifi opens the phone's Wi-Fi settings, and carries on when they return.
type Inbox ¶
type Inbox struct{}
Inbox lists what people shared to the app from elsewhere: a link to read later, a photo of a receipt.
type KitchenScreen ¶
type KitchenScreen struct{}
KitchenScreen holds the screen sideways while it's showing.
type LiveOrders ¶
type LiveOrders struct{}
LiveOrders counts how often the app comes back, the moment to refresh anything that may have gone stale.
type Membership ¶
type Membership struct{}
Membership sells one subscription, and hands the receipt to Cashier.
type Moment ¶
type Moment struct{}
Moment lets someone share a Live Photo of their latte art, and plays it back.
type NightlySync ¶
type NightlySync struct{}
NightlySync asks for the task, and shows when it last ran.
type Notifications ¶
type Notifications struct{}
Notifications asks, gets a token for your server, and shows what arrives.
type Orders ¶
type Orders struct{}
Orders keeps a list of orders in SQLite, and adds one on each tap.
type OrdersSplit ¶
type OrdersSplit struct{}
OrdersSplit lists orders beside the open one on a tablet, and pushes the open one on a phone.
type PhoneNetwork ¶
type PhoneNetwork struct{}
PhoneNetwork shows what the phone will say about its network.
type RateUs ¶
type RateUs struct{}
RateUs asks for a rating after something went well. The system decides whether the prompt really shows, so nothing here depends on it.
type Recipe ¶
type Recipe struct{}
Recipe goes tabletop on a half-open foldable: the video above the fold, the steps below it.
type Reservations ¶
type Reservations struct{}
Reservations puts a booking page under a header of your own.
type SaveToPhotos ¶
type SaveToPhotos struct{}
SaveToPhotos saves a picture, then reads back the newest one.
type SendGift ¶
type SendGift struct{}
SendGift lets them choose one person. The system's picker needs no permission: the app only sees who they chose.
type Showroom ¶
type Showroom struct{}
Showroom shows a gift box on a table, in shadow, to turn with a finger. For a model from Blender or a store, scene.LoadGLTF reads its .glb.
type Sunset ¶
type Sunset struct{}
Sunset is a welcome screen on a mesh gradient, its middle point bent toward the top right.
type Thumbnail ¶
type Thumbnail struct{}
Thumbnail shrinks and turns a picture, and shows what it cost. A real app starts from camera.Pick and imagemanipulator.Decode.
type Viewfinder ¶
type Viewfinder struct{}
Viewfinder shows the camera with buttons of its own over it.
type VoiceMemo ¶
type VoiceMemo struct{}
VoiceMemo records a note, shows the level, and plays it back.
type VoiceSearch ¶
type VoiceSearch struct{}
VoiceSearch writes out what they say, for up to ten seconds.
type Welcome ¶
type Welcome struct{}
Welcome offers both. Send u.IDToken to your server, and have it call signin.Verify: what a phone says proves nothing by itself.
type WorkAccount ¶
type WorkAccount struct{}
WorkAccount signs in with Microsoft. Keep the refresh token in securestore, and send the ID token to your server to check, as you would signin's.
Source Files
¶
- appinfo.go
- applemaps.go
- appreview.go
- appstate.go
- audio.go
- audioplayer.go
- audiorecorder.go
- backgroundlocation.go
- backgroundtasks.go
- badge.go
- barcode.go
- barometer.go
- biometrics.go
- bluetooth.go
- brightness.go
- browser.go
- calendar.go
- calendarevents.go
- camera.go
- cameraview.go
- cellular.go
- clipboard.go
- contacts.go
- device.go
- dialog.go
- filepicker.go
- filesystem.go
- geofencing.go
- geolocation.go
- googlemaps.go
- guide.go
- haptics.go
- hinge.go
- imagemanipulator.go
- intentlauncher.go
- keepawake.go
- keyboard.go
- lightsensor.go
- linking.go
- livephoto.go
- localization.go
- localnotifications.go
- magnetometer.go
- mailcomposer.go
- medialibrary.go
- meshgradient.go
- motion.go
- navigationbar.go
- network.go
- nfc.go
- oauth.go
- orientation.go
- pedometer.go
- printing.go
- purchases.go
- push.go
- receiveshare.go
- scene.go
- screencapture.go
- screenreader.go
- securestore.go
- share.go
- signin.go
- sms.go
- speech.go
- speechrecognition.go
- splashscreen.go
- splitview.go
- sqlite.go
- statusbar.go
- storage.go
- symbols.go
- trackingconsent.go
- video.go
- webview.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package components holds the complete example on each component's guide page, compiled here so that they can't go stale.
|
Package components holds the complete example on each component's guide page, compiled here so that they can't go stale. |