AndroidApp

@IviExperimental(reasons = [])
abstract class AndroidApp(val packageName: String) : App

A base class for Android apps that implements the App interface and makes use of the Android PackageManager to query the required information for the given app package name.

Constructors

Link copied to clipboard
fun AndroidApp(packageName: String)

Types

Link copied to clipboard
class AppInfo

This class allows mocking of PackageManager functionality in tests.

Properties

Link copied to clipboard
open override val displayName: StringResolver

displayName resolves to an empty string if the package is not found so it can be used to filter out recently uninstalled apps.

Link copied to clipboard
open override val icon: DrawableResolver

Provides an icon for the app which can be displayed in the UI.

Link copied to clipboard
open override val id: String

Provides a unique identifier for the App instance.

Link copied to clipboard
Link copied to clipboard
open override val summary: StringResolver

Provides a description of the app which can be displayed in the UI.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

Link copied to clipboard
Link copied to clipboard