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

Method SetSearch

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

Source from the content-addressed store, hash-verified

432}
433
434void URLImpl::SetSearch(v8::Local<v8::String> property,
435 v8::Local<v8::Value> value,
436 const v8::PropertyCallbackInfo<void> &info) {
437 URLImpl *ptr = GetPointer(info.This());
438 if (ptr == nullptr) {
439 return;
440 }
441 auto isolate = info.GetIsolate();
442 auto context = isolate->GetCurrentContext();
443 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
444 ptr->GetURL()->set_search(val.c_str());
445}
446
447
448void URLImpl::GetUserName(v8::Local<v8::String> property,

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected