PrivacyServiceImpl class
Implementation of PrivacyService using method channel.
- Implemented types
Constructors
- PrivacyServiceImpl(LocusInterface _instanceProvider())
- Creates a privacy service with the given Locus interface provider.
Properties
-
events
→ Stream<
PrivacyZoneEvent> -
Stream of privacy zone change events.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
PrivacyZone zone) → Future< void> -
Adds a privacy zone.
override
-
addAll(
List< PrivacyZone> zones) → Future<void> -
Adds multiple privacy zones.
override
-
get(
String identifier) → Future< PrivacyZone?> -
Gets a privacy zone by identifier.
override
-
getAll(
) → Future< List< PrivacyZone> > -
Gets all registered privacy zones.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
void callback(PrivacyZoneEvent)) → void -
Subscribes to privacy zone change events.
override
-
remove(
String identifier) → Future< bool> -
Removes a privacy zone by identifier.
override
-
removeAll(
) → Future< void> -
Removes all privacy zones.
override
-
setEnabled(
String identifier, bool enabled) → Future< bool> -
Enables or disables a privacy zone.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited