#import <FlutterDartVMServicePublisher.h>
◆ initWithEnableVMServicePublication:
- (instancetype) initWithEnableVMServicePublication: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
Initial value:{
flutter::DartServiceIsolate::CallbackHandle _callbackHandle
Definition at line 146 of file FlutterDartVMServicePublisher.mm.
146 :(BOOL)enableVMServicePublication {
148 NSAssert(
self,
@"Super must not return null on init.");
151 _enableVMServicePublication = enableVMServicePublication;
152 __weak __typeof(
self) weakSelf =
self;
154 fml::MessageLoop::EnsureInitializedForCurrentThread();
156 _callbackHandle =
flutter::DartServiceIsolate::AddServerStatusCallback(
157 [weakSelf, runner = fml::MessageLoop::GetCurrent().GetTaskRunner()](const std::
string& uri) {
159 runner->PostTask([weakSelf, uri]() {
165 [[NSURL alloc] initWithString:[NSString stringWithUTF8String:uri.c_str()]];
167 if (strongSelf.enableVMServicePublication) {
168 [[strongSelf delegate] publishServiceProtocolPort:url];
◆ NS_UNAVAILABLE [1/2]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ url
The documentation for this class was generated from the following files: