boot_time_plugin 0.0.6 copy "boot_time_plugin: ^0.0.6" to clipboard
boot_time_plugin: ^0.0.6 copied to clipboard

This is a simple Flutter plugin that provides the device's last boot time on Android and iOS.

boot_time_plugin #

pub.dev platform

A simple Flutter plugin that provides the device's last boot time on Android and iOS.

Useful for:

  • Detect device reboots
  • Track uptime or system session length
  • Reset counters or logs after a reboot
  • Save boot time to persistent storage

Installation #

Add this to your pubspec.yaml:

dependencies:
boot_time_plugin: ^0.0.6

USAGE #

import 'package:boot_time_plugin/boot_time_plugin.dart';
// Get boot time as DateTime (recommended)
final DateTime bootTime = await BootTimePlugin.getBootTime();

// Get boot time as raw milliseconds (for storage or performance)
final int bootTimeMillis = await BootTimePlugin.getBootTimeMilliseconds();

1
likes
150
points
96
downloads

Publisher

unverified uploader

Weekly Downloads

This is a simple Flutter plugin that provides the device's last boot time on Android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on boot_time_plugin

Packages that implement boot_time_plugin