Example

import Http from '@smartface/native/net/http';

var http = new Http();
var myImageUrl = your-image-url;
var request = HttpRequestImage({url: myImageUrl, onLoad: onLoad, onError: onError});
request.cancel();

Hierarchy

  • default
    • HttpRequest

Properties

_nativeObject: any

Accessors

  • get nativeObject(): any
  • Returns any

  • set nativeObject(value: any): void
  • Parameters

    • value: any

    Returns void

Methods

  • Executed before constuctor and after createNativeObject. Use this when you have default values which needs to be set before constructor.

    Parameters

    • Optional params: Partial<Record<string, any>>

    Returns void

  • Returns null

  • Returns void

  • Returns void

  • Returns void

Constructors

  • Parameters

    • Optional params: { nativeObject?: any }
      • Optional nativeObject?: any

    Returns HttpRequest

Generated using TypeDoc