Interface IBlob<TNative, TProps>

Since

0.1

Blob is a binary large object.

Example

import Blob from '@smartface/native/blob';
var myBase64Str = "SGVsbG8gV29ybGQ=";
var blob = Blob.createFromBase64(myBase64Str);

Type Parameters

Hierarchy

  • INativeMobileComponent<TNative, TProps>
    • IBlob

Implemented by

Properties

nativeObject: TNative
ios: TProps["ios"]
android: TProps["android"]
type: string

Returns the type of Blob data.

Property

Since

0.1

size: number

Returns blob size.

Property

Since

0.1

toBase64Async: ((handlers: { onComplete: ((base64: String) => void); onFailure?: (() => void) }) => void)

Type declaration

    • (handlers: { onComplete: ((base64: String) => void); onFailure?: (() => void) }): void
    • Converts to base64 asynchronously

      Method

      toBase64Async

      Android

      Ios

      Since

      4.3.0

      Parameters

      • handlers: { onComplete: ((base64: String) => void); onFailure?: (() => void) }
        • onComplete: ((base64: String) => void)
            • (base64: String): void
            • Parameters

              • base64: String

              Returns void

        • Optional onFailure?: (() => void)
            • (): void
            • Returns void

      Returns void

toString: (() => string)

Type declaration

    • (): string
      • Returns a utf8 String

      Method

      toString

      Since

      0.1

      Returns string

Methods

  • Returns a base64 String

    Method

    toBase64

    Since

    0.1

    Returns string

Generated using TypeDoc