cattyinstall_platform_interface

A common platform interface for the cattyinstall Flutter plugin.

This package defines the abstract interface that all platform-specific implementations must follow, using the plugin_platform_interface package.

Usage

This package is not intended for direct use by app developers. Instead, use the cattyinstall package which automatically selects the appropriate platform implementation.

To implement a new platform:

import 'package:cattyinstall_platform_interface/cattyinstall_platform_interface.dart';

class CattyinstallMyPlatform extends CattyinstallPlatform {
  static void registerWith() {
    CattyinstallPlatform.instance = CattyinstallMyPlatform();
  }

  @override
  Future<void> initialize({
    required String key,
    required String server,
    bool debug = false,
    bool useClipboard = false,
  }) async {
    // Platform-specific initialization
  }

  // ... implement other abstract methods
}

Types

  • InstallParams - Install attribution parameters

Requirements

  • Flutter >= 3.0.0
  • Dart >= 3.0.0