Skip to content

PHP API Index

This index maps the Composer-autoloaded surface of pushinbr/pam-native (packages/native/src, namespace Pam\Native). Use it to discover the exact type responsible for a capability, then follow the linked guide for behavior and examples. Optional features ship in plugins with their own namespaces — see the plugin catalog.

Terminal window
pam composer require pushinbr/pam-native
pam doctor
Area Public types
Boot App, BuildConfiguration, BuildMode, Protocol
Tree Renderable, Element, View, Component, FunctionalComponent, Slot
State State, ComponentState, ComponentChanges, Effect, Watch, Restorable
Events and refs ComponentEvent, ComponentRef, NativeRef, NativeOperation, EventKind, ErrorContext
Templates TemplateRegistry, TemplateException
Async AsyncResource, AsyncValue, AsyncStatus
Styling Style, Theme, PropKey, CssColor

Component attributes live in Pam\Native\Attributes: Prop, State, Computed, Action, Event, Slot, Tag, and Expose. See Component runtime.

These enums replace stringly typed platform values:

Align, Justify, FlexDirection, FlexWrap, PositionType, Overflow, PointerEvents, LayoutDirection, BorderStyle, FontStyle, TextAlignment, TextDecoration, TextTransform, TextBreakStrategy, TextHyphenationFrequency, TextEllipsizeMode, TextDataDetectorType, InputMode, InputAutoCapitalize, InputAutofillImportance, InputSubmitBehavior, InputSyncMode, InputTextAlignVertical, KeyboardType, ReturnKeyType, KeyboardAvoidingBehavior, SafeAreaMode, ScrollKeyboardDismissMode, ScrollOverScrollMode, ScrollTargetAlignment, RefreshIndicatorSize, and ActivityIndicatorSize.

Input and interaction event values are InputContentSizeEvent, InputKeyEvent, InputSelectionEvent, PressEvent, GestureEvent, GestureState, GestureType, GestureDirection, and GestureComposition.

AccessibilityRole, AccessibilityImportance, AccessibilityLiveRegion, AccessibilityCheckedState, UserInterfaceAppearance, StatusBarAppearance, WindowMetrics, AppState, and MemoryPressure.

Area Types
Animation AnimationKind, AnimationEasing, AnimationFillMode, AnimationKeyframe, AnimationPlayState, MotionPreset
Modal/sheet ModalAnimationType, ModalPresentation, ModalOrientation, BottomSheetEvent, BottomSheetKeyboardBehavior
Image ImageFit, ImageResizeMethod, ImageCachePolicy, ImageLoadEvent, ImageErrorEvent, ImageProgressEvent, ImagePrefetchResult
Media MediaType, MediaPickerType, MediaPriority, MediaCachePolicy, MediaCacheEntryState, MediaCacheEvent, MediaReadyEvent, MediaTracksEvent
Drawing DrawingMode
Motion (Animation namespace) Animation, AnimationPreset, Motion, Spring, Easing, Transition, Drag, TapEffect, KeyboardProgress

FileReference, FileDownloadProgress, DeviceStatus, DeviceStatusField, NetworkType, PermissionKind, PermissionStatus, PermissionDecision, PermissionRationale, NativeMenuItem, HapticFeedback, CacheUsage, NodeKind, and ModuleResultStatus.

Pam\Native\UI contains retained native views:

Family Types
Layout Screen, SafeAreaView, View, Column, Row, Grid, Spacer, Scroll, ScrollView, KeyboardAvoidingView
Text/input Text, Input, TextInput, InputAccessoryView, Button, Toggle, NativeSwitch
Interaction Pressable, InteractionRegion, GestureDetector, TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, TouchableWithoutFeedback
Lists FlatList, SectionList, VirtualizedList, VirtualGrid, NativeList, RefreshControl
Images/media Image, ImageBackground, MediaPlayer, DrawingCanvas, Canvas
Overlay/system Modal, BottomSheet, StatusBar, ActivityIndicator, Suspense, WebView, DrawerLayoutAndroid
Extension CustomView, Animated

Shared behavior traits are HasImageBehavior, HasInputBehavior, HasMediaCacheBehavior, HasRefreshControl, and HasScrollPhaseEvents.

WebView and DrawerLayoutAndroid (and the Drawer* navigation types) are aliases kept for the pushinbr/pam-native-webview and pushinbr/pam-native-drawer plugins; install the plugin to use them. System\ToastPosition likewise points to pushinbr/pam-native-toast.

Static/native facades in Pam\Native\System:

Accessibility, Alert, AlertButton, BackgroundTasks, Caches, Clipboard, DeviceInfo, DeviceStatus, Files, Haptics, Keyboard, Linking, Permissions, Screen, Share, TextScale, Timers, TimerHandle, Vibration, and ViewRef.

These APIs left the core in PAM Native 1.46 and ship in official plugins (the old Pam\Native\… aliases were removed in 1.54):

Namespace Main types Package
Pam\Native\Notifications Notifications, PushNotifications, PushMessage, PushToken, PushProvider, PushEventType, NotificationImportance pushinbr/pam-native-notifications
Pam\Native\Location Location, LocationPosition, LocationError, LocationServicesResult pushinbr/pam-native-location
Pam\Native\Sensors Sensors, SensorReading, SensorType pushinbr/pam-native-sensors
Pam\Native\Contacts Contacts, Contact, Sms pushinbr/pam-native-contacts
Pam\Native\Audio AudioRecorder, AudioRecording, AudioRecordingProgress, AudioPlayer pushinbr/pam-native-audio
Pam\Native\Media MediaCapture, CaptureType, MediaLibrary, MediaAsset, MediaAssetPage, MediaAlbum, ViewCapture pushinbr/pam-native-media
Pam\Native\MediaEditor ImageEditor, ImageCropRatio, ImageFilterType, ImageTextLayerStyle pushinbr/pam-native-media-editor
Pam\Native\ShareExtension IncomingShares, IncomingShare pushinbr/pam-native-share-extension
Pam\Native\Toast Toast pushinbr/pam-native-toast
Pam\Native\Auth AuthVault, Biometrics, Pkce pushinbr/pam-native-auth

Guides: platform capabilities, permissions, storage, files and media, notifications, and location and sensors.

Namespace Public types
Navigation core NavigationContainer, Navigator, Router, NavigationAction, NavigationActionType, NavigationOperation, NavigationPresentation, NavigationOrientation, NavigationTransition
Screens/state NavigationScreen, NavigationRef, NavigationHost, NavigationStateProvider, NavigationObservable, NavigationSubscription, NavigationEvent, NavigationEventType, PendingRoute, RouteContext
Back/lifecycle NavigationBackCoordinator, NavigationBackHandler, NavigationActionHandler, NavigationLifecycleAware, InteractsWithNavigationLifecycle
Stack options ScreenOptions, ScreenOptionsPatch, ScreenOptionLayer, NavigationGestureDirection, NavigationTheme
Tabs TabNavigator, TabRouter, TopTabNavigator, TopTabRouter, NativeTabHost, NavigationTab, TabPresentation, TabBackBehavior
Drawers DrawerNavigator, DrawerRouter, NavigationDrawerItem, DrawerType, DrawerPosition, DrawerBackBehavior, DrawerKeyboardDismissMode, DrawerStatusBarAnimation
Links/devtools DeepLink, NavigationLinkHandler, NavigationDevTools, NavigationTraceKind
Shared elements SharedTransitionStyle, SharedTransitionEasing, SharedTransitionResizeMode
Routing facade Navigation, Route, RouteDefinition, RouteName, RoutePreset, RouteTarget, RouteModule, RouteRegistrar, RouteCodeGenerator, ScreenFactory, TabRegistrar, TopTabRegistrar, DrawerRegistrar

See the navigation guide for stacks, tabs, drawers, deep links, predictive back and shared elements.

Namespace Public types Guide
Database SQLite SQLite database
Storage Storage, SecureStorage, StorageBudget Storage
Http Http, HttpResponse, HttpClient, Request, Response, PendingResponse, HttpError, MultipartRequest, HttpTransfer, TransferProgress, OutboundTraceContext HTTP networking
Async Promise, Thenable, PromiseState HTTP networking
Composables Resource, NetworkState, SafeAreaInsets, ColorScheme, WindowDimensions, KeyboardState, AppStateRef, LocaleState, TimezoneState, FontScale, FormFactor (returned by useResource(), useNetwork(), useSafeAreaInsets(), …) State and lifecycle
Cache BoundedStore, CachePersistence, StoragePersistence, MemoryPersistence, CallbackPersistence, IdLedger Storage
Events EventBus, Observable, Subscription State and lifecycle
I18n, Support I18n; Format, Text, DateStyle, RelativeTimeStyle, ProgressiveListWindow —
Testing Harness, Mounted, RouteTester Testing
Forms NativeForm, FormStatus, ValidationRule; attributes Required, Email, MinLength, MaxLength, Matches Forms
Store Store, Stores, StoreManager, StoreSelector, StoreChange, StoreChangeKind, StoreMiddleware, ActionPolicy, StoreDevTools, StorePersistence, StatePersistence, EncryptedStatePersistence, StoreMigration, StoreReplica Global store
Signals Signal, Signals, ComputedSignal, ReadableSignal, Watcher, EffectScope, ReactiveEffect, ReactiveScope, ReactiveSource, ReactiveObserver State and lifecycle
LocalFirst LocalStore, LocalRecord, ConflictPolicy, EncryptedJournal Offline Sync
Sync OfflineMutationQueue, Mutation, MutationStatus Offline Sync
Update SignedUpdateManifest, UpdateChannel, UpdateDecision, UpdateDecisionStatus, UpdateActivationStatus, UpdateSlotManager, UpdateVerifier OTA updates
Namespace Public types Guide
Dom Document, Element, ElementCollection, Selector, ClassList, StyleDeclaration, MutationObserver, MutationRecord, DocumentSnapshot Visual DOM
Style StyleScope, StyleVariables, StylePropertyCatalog, StylePropertyDefinition, StyleInteractionState, StyleQueryFeature, StyleQueryKind, StyleQueryOperator, StyleQueryValueKind, StyleValueUnit, StyleExpressionKind, StyleInvalidationKind, StyleRenderCost, StyleCompatibility Styling
Namespace Public types Guide
Scheduling Scheduler, ScheduledTask, TaskGroup, TaskPriority, Deferred, AsyncStream, CancellationToken, TaskCancelledException, DeadlineExceededException, BackpressureException Platform runtime
Jobs BackgroundJobs Platform runtime
Modules NativeModules, NativeModuleTransport, NativeModuleResult, NativeModuleException Writing plugins
Bridge IdlCompiler, IdlArtifacts, IdlType Platform runtime
Plugin PluginProvider, PluginManager, PluginRegistry, RegistryEntry, TrustTier, PluginException Writing plugins
Canvas CanvasCommandKind Platform runtime
Worklets Worklet, WorkletOpcode, WorkletTarget Platform runtime
ServerDriven ServerDrivenUi, ServerNodeKind Platform runtime
HotReload HotReloadCoordinator, StateSnapshot Hot reload
Diagnostics Profiler, ProfileSpan, ReplayTimeline DevTools
Tooling PamFormatter Editor setup

Types under Pam\Native\Internal are autoloadable because of PSR-4, but they are implementation details for compilation, encoding, reconciliation and runtime supervision. Do not couple application code to Runtime, RuntimeSupervisor, Wire, TreeEncoder, TemplateCompiler, TemplateRenderer, PamPhpCompiler, PamPhpComponent, PamPhpRegistry, PamPhpPreloader, EncodedNode, EncodedSubtree, CompiledTemplateNode, CompiledComponentView, DependencyTracker, ComponentLifecycle, ScopedStyleCompiler, or TemplateExpression.

Their presence in Composer autoloading is not a stability promise. Public application contracts live outside Internal and follow the Native protocol and compatibility policy.