#import <FlutterDartVMServicePublisher.h>
◆ initWithEnableVMServicePublication:
- (instancetype) initWithEnableVMServicePublication: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
Initial value:{
flutter::DartServiceIsolate::CallbackHandle _callbackHandle
Definition at line 122 of file FlutterDartVMServicePublisher.mm.
157 :(BOOL)enableVMServicePublication {
159 NSAssert(
self,
@"Super must not return null on init.");
162 _enableVMServicePublication = enableVMServicePublication;
163 __weak __typeof(
self) weakSelf =
self;
165 fml::MessageLoop::EnsureInitializedForCurrentThread();
167 _callbackHandle =
flutter::DartServiceIsolate::AddServerStatusCallback(
168 [weakSelf, runner =
fml::MessageLoop::GetCurrent().GetTaskRunner()](const std::
string& uri) {
170 runner->PostTask([weakSelf, uri]() {
176 [[NSURL alloc] initWithString:[NSString stringWithUTF8String:uri.c_str()]];
178 if (strongSelf.enableVMServicePublication) {
179 [[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: