> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# API Reference

Exact signatures, attributes and options for every AngularLynx package and element. To learn a feature step by step, start with the [Guide](/guide/quick-start.md).

## Packages

| Package                                | Reference                                                  | What it covers                                                    |
| -------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------- |
| `@blotch/angular-lynx`                 | [Package overview](/api/angular-lynx/index.md)             | The runtime: bootstrap, routing, elements, animation and services |
| `@blotch/angular-lynx`                 | [Schematics](/api/schematics.md)                           | `ng add`, `ng generate component` and the other schematics        |
| `@blotch/angular-lynx-build`           | [Builders](/api/build/index.md)                            | The builders behind `ng build`, `ng serve` and `ng test`          |
| `@blotch/angular-lynx-testing-library` | [Testing library](/api/testing-library/index.md)           | `render()`, events and queries for component tests                |
| `@blotch/angular-lynx-testing-library` | [Event reference](/api/testing-library/event-reference.md) | Every `fireEvent` method and the template binding it runs         |

## Runtime

### App setup and UI

| Page                                                  | What it covers                                                       |
| ----------------------------------------------------- | -------------------------------------------------------------------- |
| [Bootstrap](/api/angular-lynx/bootstrap.md)           | `bootstrapApplication`, `provideRenderer`, `loadLazyBundle`          |
| [Routing](/api/angular-lynx/routing/index.md)         | `provideRouter`, the stack and tab outlets, and the location classes |
| [Elements](/api/angular-lynx/elements/index.md)       | `LYNX_ELEMENTS`, every element directive, form value accessors       |
| [Element events](/api/angular-lynx/element-events.md) | `$event`'s types, pointer events and each element's own events       |
| [Animation](/api/angular-lynx/animation.md)           | `animate()`, `<lynx-transition>`, `<lynx-transition-group>`          |
| [Accessibility](/api/angular-lynx/accessibility.md)   | `LynxAccessibility` and the `accessibility-*` attributes             |
| [Fonts](/api/angular-lynx/fonts.md)                   | `LynxFont`: load fonts at runtime                                    |
| [Portal](/api/angular-lynx/portal.md)                 | `LynxPortal`: open overlays from code                                |
| [Exposure](/api/angular-lynx/exposure.md)             | `LynxExposure`, `LynxGlobalExposure` and the `exposure-*` attributes |
| [Text measure](/api/angular-lynx/text-measure.md)     | `LynxTextMeasure`: text width and line breaks                        |

### Device

| Page                                                   | What it covers                                                     |
| ------------------------------------------------------ | ------------------------------------------------------------------ |
| [Theme](/api/angular-lynx/device/theme.md)             | `LynxTheme`: light or dark appearance                              |
| [Safe area](/api/angular-lynx/device/safe-area.md)     | `LynxSafeArea` and the `SAFE_AREA_INSET_*` constants               |
| [Viewport](/api/angular-lynx/device/viewport.md)       | `LynxViewport`: the page's and the window's size, following a fold |
| [Locale](/api/angular-lynx/device/locale.md)           | `LynxLocale`, `provideLocale`, `getLynxAppLocale`                  |
| [System info](/api/angular-lynx/device/system-info.md) | `LynxSystemInfo`: platform and screen size                         |
| [App state](/api/angular-lynx/device/app-state.md)     | `LynxAppState`: whether the app is in the foreground               |
| [Network](/api/angular-lynx/device/network.md)         | `LynxNetwork`: whether the phone is online                         |
| [Clipboard](/api/angular-lynx/device/clipboard.md)     | `LynxClipboard`: copy and paste text                               |
| [Haptics](/api/angular-lynx/device/haptics.md)         | `LynxHaptics`: tap the phone, as native controls do                |

### Hardware

| Page                                                             | What it covers                                                                  |
| ---------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [Bluetooth](/api/angular-lynx/hardware/bluetooth.md)             | `LynxBluetooth`: find Bluetooth LE devices and talk to them                     |
| [NFC](/api/angular-lynx/hardware/nfc.md)                         | `LynxNfc`: read and write NFC tags                                              |
| [Geolocation](/api/angular-lynx/hardware/geolocation.md)         | `LynxGeolocation`: find where the phone is, once or as it moves                 |
| [Motion](/api/angular-lynx/hardware/motion.md)                   | `LynxMotion`: read the motion sensors and compass, and hear a shake             |
| [Biometrics](/api/angular-lynx/hardware/biometrics.md)           | `LynxBiometrics`: confirm the person with Face ID or a fingerprint              |
| [Barcode scanner](/api/angular-lynx/hardware/barcode-scanner.md) | `LynxBarcodeScanner`: read a QR code or a barcode with the camera               |
| [Audio player](/api/angular-lynx/hardware/audio-player.md)       | `LynxAudioPlayer`: play audio, on the lock screen and in the background         |
| [Audio recorder](/api/angular-lynx/hardware/audio-recorder.md)   | `LynxAudioRecorder`: record audio from the microphone                           |
| [Wi-Fi](/api/angular-lynx/hardware/wifi.md)                      | `LynxWifi`: read the phone's Wi-Fi network and join another, to set up a device |

### Media

| Page                                                      | What it covers                                                                   |
| --------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [Image picker](/api/angular-lynx/media/image-picker.md)   | `LynxImagePicker`: let someone pick a photo                                      |
| [Photo library](/api/angular-lynx/media/photo-library.md) | `LynxPhotoLibrary`: save an image or a video to the photo library                |
| [File picker](/api/angular-lynx/media/file-picker.md)     | `LynxFilePicker`: let someone pick a document, or save a file                    |
| [Contacts](/api/angular-lynx/media/contacts.md)           | `LynxContacts`: pick a contact, a number or an address, or read the address book |
| [Calendar](/api/angular-lynx/media/calendar.md)           | `LynxCalendar`: add an event to the person's calendar                            |

### Sharing and links

| Page                                                      | What it covers                                                             |
| --------------------------------------------------------- | -------------------------------------------------------------------------- |
| [Share](/api/angular-lynx/sharing/share.md)               | `LynxShare`: open the share sheet to send files and links, or save a photo |
| [Share target](/api/angular-lynx/sharing/share-target.md) | `LynxShareTarget`: receive what other apps share to the app                |
| [Linking](/api/angular-lynx/sharing/linking.md)           | `LynxLinking`: open links in the browser, a browser sheet or another app   |
| [Shortcuts](/api/angular-lynx/sharing/shortcuts.md)       | `LynxShortcuts`: hear the shortcuts run from Siri or the app icon's menu   |

### Accounts

| Page                                                               | What it covers                                                           |
| ------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| [Web auth session](/api/angular-lynx/accounts/web-auth-session.md) | `LynxWebAuthSession`: sign in through a web page                         |
| [Sign in with Apple](/api/angular-lynx/accounts/apple-sign-in.md)  | `LynxAppleSignIn`: sign in with Apple's own sheet on iOS                 |
| [Store review](/api/angular-lynx/accounts/store-review.md)         | `LynxStoreReview`: ask for an App Store or Google Play rating in the app |
| [Tracking](/api/angular-lynx/accounts/tracking.md)                 | `LynxTracking`: ask whether the app may track, for ads and attribution   |

### Host app

| Page                                                      | What it covers                                                       |
| --------------------------------------------------------- | -------------------------------------------------------------------- |
| [Host data](/api/angular-lynx/host/host-data.md)          | `LynxInitData`, `LynxGlobalData`, `registerDataProcessors`           |
| [Native module](/api/angular-lynx/host/native-module.md)  | `LynxNativeModule`: call the host app's native code                  |
| [Back button](/api/angular-lynx/host/back-button.md)      | `LynxBackButton`: hear Android's back button and back gesture        |
| [Splash screen](/api/angular-lynx/host/splash-screen.md)  | `LynxSplashScreen`: keep the splash screen up until the app is ready |
| [reportFullyDrawn](/api/angular-lynx/host/fully-drawn.md) | `reportFullyDrawn()`: tell the phone the first screen is usable      |

### Storage, network and debugging

| Page                                                          | What it covers                                                          |
| ------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [Persistent storage](/api/angular-lynx/persistent-storage.md) | `LynxLocalStorage`, `LynxSecureStorage`: data kept after the app closes |
| [Session storage](/api/angular-lynx/session-storage.md)       | `LynxSessionStorage`: state shared between pages                        |
| [Resource prefetch](/api/angular-lynx/resource-prefetch.md)   | `LynxResourcePrefetch`: preload images and videos                       |
| [Errors and logging](/api/angular-lynx/errors-and-logging.md) | `LynxErrorHandler`, `LynxLogger`                                        |
| [DevTools](/api/angular-lynx/devtools.md)                     | `LynxDevTools`, `LynxPerformance`                                       |

## Gestures

| Page                                            | What it covers                                                      |
| ----------------------------------------------- | ------------------------------------------------------------------- |
| [Gestures](/api/gestures/index.md)              | The `[lynxGesture]` directive and composing gestures                |
| [Gesture types](/api/gestures/gesture-types.md) | Tap, pan, fling, long press, pinch and rotation: options and events |
| [Gesture lifecycle](/api/gestures/lifecycle.md) | Gesture states, callbacks and `GestureStateManager`                 |

## Main-thread scripts

Code that runs on the [main thread](/guide/glossary.md#main-thread), right inside native events. Read [Main-thread scripts](/guide/main-thread/index.md) first.

| Page                                                           | What it covers                                   |
| -------------------------------------------------------------- | ------------------------------------------------ |
| [`mainThreadFn`](/api/main-thread/main-thread-fn.md)           | Define a function that runs on the main thread   |
| [`LynxMainThreadEvent`](/api/main-thread/main-thread-event.md) | Bind main-thread functions to native events      |
| [`MainThreadRef`](/api/main-thread/main-thread-ref.md)         | Keep a value between main-thread script calls    |
| [`LynxMainThread`](/api/main-thread/main-thread-service.md)    | Call a main-thread function from Angular code    |
| [`backgroundFn`](/api/main-thread/background-fn.md)            | Call background-thread code from the main thread |

## Elements

The native elements your templates use instead of HTML. See [Elements and layout](/guide/elements/index.md) for how they compare with HTML.

| Element                                                           | Use it for                                           |
| ----------------------------------------------------------------- | ---------------------------------------------------- |
| [`<view>`](/api/elements/view.md)                                 | Layout and grouping, like `<div>`                    |
| [`<text>`](/api/elements/text.md)                                 | All visible text                                     |
| [`<image>`](/api/elements/image.md)                               | Local and remote images                              |
| [`<scroll-view>`](/api/elements/scroll-view.md)                   | A scrolling area                                     |
| [`<list>`](/api/elements/list.md)                                 | Long lists that render only the visible rows         |
| [`<refresh>`](/api/elements/refresh.md)                           | Pull to refresh                                      |
| [`<scroll-coordinator>`](/api/elements/scroll-coordinator.md)     | Collapsing headers and sticky toolbars               |
| [`<viewpager>`](/api/elements/viewpager.md)                       | Pages you swipe between                              |
| [`<input>`](/api/elements/input.md)                               | Single-line text input                               |
| [`<textarea>`](/api/elements/textarea.md)                         | Multi-line text input                                |
| [`<overlay>`](/api/elements/overlay.md)                           | Content above the page, such as dialogs              |
| [`<frame>`](/api/elements/frame.md)                               | Another Lynx bundle inside this page                 |
| [`<block>`](/api/elements/block.md)                               | Grouping without a layout box, like `<ng-container>` |
| [`<svg>`](/api/elements/svg.md)                                   | SVG graphics                                         |
| [`<canvas>`](/api/elements/canvas.md)                             | 2D drawing, and 3D with WebGL2 for three.js          |
| [`<blur-view>`](/api/elements/blur-view.md)                       | Frosted, blurred backgrounds                         |
| [`<video>`](/api/elements/video.md)                               | Video playback                                       |
| [`<webview>`](/api/elements/webview.md)                           | Web pages inside your app                            |
| [`<apple-sign-in-button>`](/api/elements/apple-sign-in-button.md) | The button that starts Sign in with Apple            |
| [`<title-bar-view>`](/api/elements/title-bar-view.md)             | The draggable area of a desktop window's title bar   |
| [`<cover-view>`](/api/elements/cover-view.md)                     | Content that draws above a desktop `<webview>`       |
