MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / fromBase64

Function fromBase64

packages/core/ui/styling/background.android.ts:9–13  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

7export * from './background-common';
8
9function fromBase64(source: string): android.graphics.Bitmap {
10 const bytes = android.util.Base64.decode(source, android.util.Base64.DEFAULT);
11
12 return android.graphics.BitmapFactory.decodeByteArray(bytes, 0, bytes.length);
13}
14
15function fromGradient(gradient: LinearGradient): org.nativescript.widgets.LinearGradientDefinition {
16 const colors = Array.create('int', gradient.colorStops.length);

Callers 1

refreshBorderDrawableFunction · 0.70

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected