PrivUserServiceSpec class abstract

Identifies one instance of a UserService.

Mirrors priv.kit.core.userservice.PrivilegeUserServiceSpec.

An instance is identified by serviceClassName plus tag. Bump version when the implementation is no longer compatible, and the runtime replaces the running instance.

Available extensions
Annotations
  • @freezed

Constructors

PrivUserServiceSpec({String? serviceClassName, @Default.new(privilegeUserServiceDefaultTag) String tag, @Default.new(1) int version, @Default.new(PrivUserServiceProcess.dedicated) PrivUserServiceProcess process, @Default.new(false) bool daemon})
const
factory

Properties

copyWith → $PrivUserServiceSpecCopyWith<PrivUserServiceSpec>
Create a copy of PrivUserServiceSpec with the given fields replaced by the non-null parameter values.
no setterinherited
daemon → bool
When true the service survives the owner process death until it is stopped explicitly or the server exits.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
process → PrivUserServiceProcess
Where the service runs, and with which UID.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceClassName → String?
Fully qualified name of the Kotlin class implementing the AIDL service.
no setterinherited
tag → String
Distinguishes several instances of the same class.
no setterinherited
version → int
Compatibility marker; change it to replace a running instance.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_PrivUserServiceSpec value)) → TResult

Available on PrivUserServiceSpec, provided by the PrivUserServiceSpecPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_PrivUserServiceSpec value)?) → TResult?

Available on PrivUserServiceSpec, provided by the PrivUserServiceSpecPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_PrivUserServiceSpec value)?, {required TResult orElse()}) → TResult

Available on PrivUserServiceSpec, provided by the PrivUserServiceSpecPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? serviceClassName, String tag, int version, PrivUserServiceProcess process, bool daemon)?, {required TResult orElse()}) → TResult

Available on PrivUserServiceSpec, provided by the PrivUserServiceSpecPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Encodes the spec for the Android side.
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String? serviceClassName, String tag, int version, PrivUserServiceProcess process, bool daemon)) → TResult

Available on PrivUserServiceSpec, provided by the PrivUserServiceSpecPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String? serviceClassName, String tag, int version, PrivUserServiceProcess process, bool daemon)?) → TResult?

Available on PrivUserServiceSpec, provided by the PrivUserServiceSpecPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited