Android SDK Introduction
Introduction to the technical requirements and features of the Petnow Android SDK.
Latest Version
| Module | Version |
|---|---|
| UI Module | 1.4.0 |
Server API Recommended: Pet management operations such as registration, verification, and identification should be performed on your server using the Server API. The client is responsible only for capturing images using the UI module.
Android SDK Features
The Petnow Android SDK is a native library written in Kotlin, compatible with both Kotlin and Java.
SDK Architecture
Key Components
UI Module
CameraController- The core engine that manages the entire lifecycle of the camera and detection session.
- Created with a license (
LicenseInfo) and controlled viainitializeCamera()/startDetection()and similar methods. - Detection events are delivered through
PetnowCameraDetectionListenerV2, and state throughgetState()(StateFlow).
CameraView- A
FrameLayoutwidget that renders the camera preview and the default tracking UI. - Connect it to a controller with
cameraView.controller = controller.
- A
PetnowCameraFragment(legacy)- A Fragment-hosting approach. For new integrations, we recommend
CameraView+CameraController. See Fragment Approach (legacy).
- A Fragment-hosting approach. For new integrations, we recommend
Technical Requirements
- Minimum Android Version: API 28 (Android 9.0) or higher
- compileSdk / targetSdk: 34
- Java: 17 or higher
- Kotlin: 1.9 or higher
Next Steps
To integrate the SDK into your Android app, refer to the following documentation:
- Getting Started - Installation and initial setup
- UI Module - Camera integration