(source: string)
| 7 | export * from './background-common'; |
| 8 | |
| 9 | function 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 | |
| 15 | function fromGradient(gradient: LinearGradient): org.nativescript.widgets.LinearGradientDefinition { |
| 16 | const colors = Array.create('int', gradient.colorStops.length); |
no test coverage detected