Petnow LogoPetnow

Android SDK Introduction

Introduction to the technical requirements and features of the Petnow Android SDK.

Latest Version

ModuleVersion
UI Module1.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 via initializeCamera() / startDetection() and similar methods.
    • Detection events are delivered through PetnowCameraDetectionListenerV2, and state through getState() (StateFlow).
  • CameraView
    • A FrameLayout widget that renders the camera preview and the default tracking UI.
    • Connect it to a controller with cameraView.controller = controller.
  • PetnowCameraFragment (legacy)

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:

On this page