implementAsListener static method
Builds an object that implements the MLNOfflineRegion protocol. To implement
multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All
methods that can be implemented as listeners will be.
If $keepIsolateAlive is true, this protocol will keep this isolate
alive until it is garbage collected by both Dart and ObjC.
Implementation
/// multiple protocols, use [addToBuilder] or [objc.ObjCProtocolBuilder] directly. All
/// methods that can be implemented as listeners will be.
///
/// If `$keepIsolateAlive` is true, this protocol will keep this isolate
/// alive until it is garbage collected by both Dart and ObjC.
static MLNOfflineRegion implementAsListener({required objc.NSURL Function() styleURL, required bool Function() includesIdeographicGlyphs, required void Function(bool ) setIncludesIdeographicGlyphs_, bool $keepIsolateAlive = true}) {
final builder = objc.ObjCProtocolBuilder(debugName: 'MLNOfflineRegion');
MLNOfflineRegion.styleURL.implement(builder, styleURL); MLNOfflineRegion.includesIdeographicGlyphs.implement(builder, includesIdeographicGlyphs); MLNOfflineRegion.setIncludesIdeographicGlyphs_.implementAsListener(builder, setIncludesIdeographicGlyphs_);
builder.addProtocol($protocol);
return MLNOfflineRegion.castFrom(builder.build(keepIsolateAlive: $keepIsolateAlive));
}