BeiziCustomController class

Flutter layer interface for configuring custom data and permissions, corresponding to the native Android BeiZiCustomController.

This class holds all the settings that will be passed to the Android side to implement the behavior of BeiZiCustomController.

Constructors

BeiziCustomController({bool? isPersonalRecommend, bool canUseLocation = true, BeiziLocation? location, bool canUseWifiState = true, bool canUsePhoneState = true, bool canUseOaid = true, bool canUseGaid = true, String? devOaid, String? oaidVersion, bool canUseAppList = true, bool shouldForbidSensor = false, bool canUseAndroidId = true, String? androidId})

Properties

androidId String?
Custom provided Android ID value. Can be null. Corresponds to getAndroidId().
final
canUseAndroidId bool
Whether the Android ID can be used. Defaults to true. Corresponds to isCanUseAndroidId().
final
canUseAppList bool
Whether the installed app list can be accessed. Defaults to true. Corresponds to isCanUseAppList().
final
canUseGaid bool
Whether GAID (Google Advertising ID) can be used. Defaults to true. Corresponds to isCanUseGaid().
final
canUseLocation bool
Whether location information can be used. Defaults to true. Corresponds to isCanUseLocation().
final
canUseOaid bool
Whether OAID (Open Anonymous Device Identifier) can be used. Defaults to true. Corresponds to isCanUseOaid().
final
canUsePhoneState bool
Whether phone state (e.g., IMEI) can be used. Defaults to true. Corresponds to isCanUsePhoneState().
final
canUseWifiState bool
Whether Wi-Fi state can be used. Defaults to true. Corresponds to isCanUseWifiState().
final
devOaid String?
Custom provided OAID value. Can be null. Corresponds to getDevOaid().
final
hashCode int
The hash code for this object.
no setterinherited
isPersonalRecommend bool?
是否支持个性化设置
final
location BeiziLocation?
Custom location information. Can be null if not provided or disabled. Corresponds to getLocation().
final
oaidVersion String?
Custom provided OAID version. Can be null. Corresponds to getOaidVersion().
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldForbidSensor bool
Whether to forbid access to device sensors (e.g., accelerometer). Defaults to false. Corresponds to forbidSensor().
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap(String appId) Map<String, dynamic>
Converts the BeiziCustomController object into a Map for transmission over a MethodChannel to the native Android side.
toString() String
A string representation of this object.
inherited

Operators

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