#import <FlutterDartVMServicePublisher.h>
◆ initWithEnableVMServicePublication:
- (instancetype) initWithEnableVMServicePublication: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
Initial value:{
flutter::DartServiceIsolate::CallbackHandle _callbackHandle
Definition at line 145 of file FlutterDartVMServicePublisher.mm.
145 :(BOOL)enableVMServicePublication {
147 NSAssert(
self,
@"Super must not return null on init.");
150 _enableVMServicePublication = enableVMServicePublication;
151 __weak __typeof(
self) weakSelf =
self;
153 fml::MessageLoop::EnsureInitializedForCurrentThread();
155 _callbackHandle =
flutter::DartServiceIsolate::AddServerStatusCallback(
156 [weakSelf, runner =
fml::MessageLoop::GetCurrent().GetTaskRunner()](const std::
string& uri) {
158 runner->PostTask([weakSelf, uri]() {
164 [[NSURL alloc] initWithString:[NSString stringWithUTF8String:uri.c_str()]];
166 if (strongSelf.enableVMServicePublication) {
167 [[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: