playx_home_launcher 0.0.1 copy "playx_home_launcher: ^0.0.1" to clipboard
playx_home_launcher: ^0.0.1 copied to clipboard

PlatformAndroid

Playx Home Launcher: Streamline launcher management in your Flutter app. Quickly check the current default launcher and enhance user experience with an integrated selection dialog.

Playx Home Launcher #

Flutter Plugin for Android

Playx Home Launcher simplifies launcher management in Flutter applications. It provides essential utilities to check the current default launcher and integrate a selection dialog for users to choose their preferred home launcher.

Features #

  • Obtain the package name of the current default launcher on the user's device.
  • Seamlessly integrate a selection dialog for users to choose their desired home launcher.
  • Open the launcher settings on the device.
  • Check if an app is the default launcher.
  • Check if an app is alauncher.

Getting Started #

  1. Installation:

    Add the Playx Home Launcher package to your pubspec.yaml file:

    dependencies:
      playx_home_launcher: ^version_number

Run:

    flutter pub get` 
  1. Import:

    Import the package in your Dart code:

    import 'package:playx_home_launcher/playx_home_launcher.dart';` 
  1. Usage:

    Utilize the provided functions to manage launcher-related tasks in your app.

// Returns current launcher package name
String currentLauncher = await PlayxHomeLauncher.getCurrentLauncher();

// Check if the launcher is the default
// packageName variable is optional as if not provided it will use the app package name.
bool? isLauncherDefault = await PlayxHomeLauncher.checkIfLauncherIsDefault(packageName: 'com.example.myapp');

// Show launcher selection dialog if avialble or Open launcher settings
PlayxHomeLauncher.showLauncherSelectionDialog(context);

// Check if the app is a launcher
bool? isAppLauncher = await PlayxHomeLauncher.checkIfAppIsLauncher(packageName: 'com.example.myapp');

// Open launcher settings
await PlayxHomeLauncher.openLauncherSettings();

  1. Enjoy:

    Enhance your Flutter app with streamlined launcher management using Playx Home Launcher!

Note #

Playx Home Launcher is exclusively designed for Android applications developed with Flutter.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

For more details and examples, refer to the documentation.

1
likes
130
pub points
14%
popularity

Publisher

verified publisherplayx.sourcya.io

Playx Home Launcher: Streamline launcher management in your Flutter app. Quickly check the current default launcher and enhance user experience with an integrated selection dialog.

Homepage
Repository (GitHub)
View/report issues

Topics

#playx #launcher #home-launcher

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on playx_home_launcher