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

Method SetUserName

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

Source from the content-addressed store, hash-verified

461}
462
463void URLImpl::SetUserName(v8::Local<v8::String> property,
464 v8::Local<v8::Value> value,
465 const v8::PropertyCallbackInfo<void> &info) {
466 URLImpl *ptr = GetPointer(info.This());
467 if (ptr == nullptr) {
468 return;
469 }
470 auto isolate = info.GetIsolate();
471 auto context = isolate->GetCurrentContext();
472 auto val = ArgConverter::ConvertToString(value->ToString(context).ToLocalChecked());
473 ptr->GetURL()->set_username(val.c_str());
474}
475
476
477void URLImpl::ToString(const v8::FunctionCallbackInfo<v8::Value> &info) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected