Android Bindings for Flutter

Project license Pub package Dartdoc reference Travis CI build status

This is a Flutter plugin for Android platform-specific APIs.

Features

  • Implements bindings to a growing set of Android's platform-specific APIs.

  • Reduces duplication of effort by centralizing Android bindings in a single package.

Compatibility

Android only.

Reference

android

import 'package:flutter_android/android.dart' as android;

android_app

import 'package:flutter_android/android_app.dart' as android_app;

android_content

import 'package:flutter_android/android_content.dart' as android_content;

android_database

import 'package:flutter_android/android_database.dart' as android_database;

android_os

import 'package:flutter_android/android_os.dart' as android_os;

Cross-Reference

AndroidFlutter
android.appandroid_app
android.app.Activityandroid_app.Activity
android.app.ActivityManagerandroid_app.ActivityManager
android.app.AlarmManagerandroid_app.AlarmManager
android.app.AuthenticationRequiredExceptionandroid_app.AuthenticationRequiredException
android.app.DownloadManagerandroid_app.DownloadManager
android.app.KeyguardManagerandroid_app.KeyguardManager
android.app.Notificationandroid_app.Notification
android.app.Notification.Actionandroid_app.NotificationAction
android.app.Notification.Builderandroid_app.NotificationBuilder
android.app.NotificationManagerandroid_app.NotificationManager
android.app.PendingIntentandroid_app.PendingIntent
android.app.SearchManagerandroid_app.SearchManager
android.app.WallpaperColorsandroid_app.WallpaperColors
android.app.WallpaperInfoandroid_app.WallpaperInfo
android.app.WallpaperManagerandroid_app.WallpaperManager
android.bluetoothandroid_bluetooth
android.contentandroid_content
android.content.ActivityNotFoundExceptionandroid_content.ActivityNotFoundException
android.content.ComponentNameandroid_content.ComponentName
android.content.ContentValuesandroid_content.ContentValues
android.content.Contextandroid_content.Context
android.content.Intentandroid_content.Intent
android.content.IntentFilterandroid_content.IntentFilter
android.content.SharedPreferencesandroid_content.SharedPreferences
android.databaseandroid_database
android.database.Cursorandroid_database.Cursor
android.database.CursorIndexOutOfBoundsExceptionandroid_database.CursorIndexOutOfBoundsException
android.database.DatabaseUtilsandroid_database.DatabaseUtils
android.database.MatrixCursorandroid_database.MatrixCursor
android.database.SQLExceptionandroid_database.SQLException
android.graphics.Colordart-ui.Color
android.graphics.drawable.Iconflutter.Icon
android.hardwareandroid_hardware
android.locationandroid_location
android.mediaandroid_media
android.netandroid_net
android.nfcandroid_nfc
android.osandroid_os
android.os.BatteryManagerandroid_os.BatteryManager
android.os.Buildandroid_os.Build
android.os.Bundleandroid_os.Bundle
android.os.Environmentandroid_os.Environment
android.os.HardwarePropertiesManagerandroid_os.HardwarePropertiesManager
android.os.Parcelandroid_os.Parcel
android.os.Parcelableandroid_os.Parcelable
android.os.PowerManagerandroid_os.PowerManager
android.os.Processandroid_os.Process
android.os.StatFsandroid_os.StatFs
android.os.SystemClockandroid_os.SystemClock
android.os.UserManagerandroid_os.UserManager
android.os.VibrationEffectandroid_os.VibrationEffect
android.os.Vibratorandroid_os.Vibrator
android.providerandroid_provider
android.securityandroid_security
android.speechandroid_speech
android.telephonyandroid_telephony
android.viewandroid_view
java.util.Localedart-ui.Locale

Libraries

android
Android bindings for Flutter.
android_app
Contains high-level classes encapsulating the overall Android application model. [...]
android_bluetooth
Provides classes that manage Bluetooth functionality, such as scanning for devices, connecting with devices, and managing data transfer between devices. [...]
android_content
Contains classes for accessing and publishing data on a device. [...]
android_database
Contains classes to explore data returned through a content provider. [...]
android_hardware
Provides support for hardware features, such as the camera and other sensors. [...]
android_location
Contains the framework API classes that define Android location-based and related services. [...]
android_media
Provides classes that manage various media interfaces in audio and video. [...]
android_net
Classes that help with network access. [...]
android_nfc
Provides access to Near Field Communication (NFC) functionality, allowing applications to read NDEF message in NFC tags. [...]
android_os
Provides basic operating system services, message passing, and inter-process communication on the device. [...]
android_provider
Provides convenience classes to access the content providers supplied by Android. [...]
android_security
Provides access to a few facilities of the Android security subsystems. [...]
android_speech
Provides access to the speech recognition service. [...]
android_telephony
Provides APIs for monitoring the basic phone information, such as the network type and connection state, plus utilities for manipulating phone number strings. [...]
android_view
Provides classes that expose basic user interface classes that handle screen layout and interaction with the user. [...]

Dart

dart:ui
Built-in types and core primitives for a Flutter application. [...]

Core

dart:async
Support for asynchronous programming, with classes such as Future and Stream. [...]
dart:collection
Classes and utilities that supplement the collection support in dart:core. [...]
dart:convert
Encoders and decoders for converting between different data representations, including JSON and UTF-8. [...]
dart:core
Built-in types, collections, and other core functionality for every Dart program. [...]
dart:developer
Interact with developer tools such as the debugger and inspector. [...]
dart:math
Mathematical constants and functions, plus a random number generator. [...]
dart:typed_data
Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types. [...]

VM

dart:io
File, socket, HTTP, and other I/O support for non-web applications. [...]
dart:isolate
Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages. [...]