MCPcopy Create free account
hub / github.com/NativeScript/android / SetProtocol

Method SetProtocol

test-app/runtime/src/main/cpp/URLImpl.cpp:405–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void URLImpl::SetProtocol(v8::Local<v8::String> property,
406 v8::Local<v8::Value> value,
407 const v8::PropertyCallbackInfo<void> &info) {
408 URLImpl *ptr = GetPointer(info.This());
409 if (ptr == nullptr) {
410 return;
411 }
412 auto isolate = info.GetIsolate();
413 auto context = isolate->GetCurrentContext();
414 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
415 ptr->GetURL()->set_protocol(val.c_str());
416}
417
418
419void URLImpl::GetSearch(v8::Local<v8::String> property,

Callers

nothing calls this directly

Calls 6

ThisMethod · 0.80
ToLocalCheckedMethod · 0.80
set_protocolMethod · 0.80
GetURLMethod · 0.80
GetIsolateMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected