NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Call Signature

ts
function getBinary(url: string): Promise<ArrayBuffer>;

Defined in: http/index.d.ts:61

Downloads the content from the specified URL as binary and returns an ArrayBuffer.

Parameters

ParameterTypeDescription
urlstringThe URL to request from.

Returns

Promise<ArrayBuffer>

Call Signature

ts
function getBinary(options: HttpRequestOptions): Promise<ArrayBuffer>;

Defined in: http/index.d.ts:67

Downloads the content from the specified URL as binary and returns an ArrayBuffer.

Parameters

ParameterTypeDescription
optionsHttpRequestOptionsAn object that specifies various request options.

Returns

Promise<ArrayBuffer>

Previous
request