public final class

InMobiNative.Downloader

extends Object
java.lang.Object
   ↳ com.inmobi.ads.InMobiNative.Downloader

Class Overview

This is an API used to control the download the APK into the app and also show the progress while downloading

Summary

Constants
int STATE_DOWNLOADED
int STATE_DOWNLOADING
int STATE_ERROR
int STATE_INITIALIZING
int STATE_UNINITIALIZED
Public Constructors
Downloader()
Public Methods
int getDownloadProgress()
int getDownloadStatus()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int STATE_DOWNLOADED

Constant Value: 1 (0x00000001)

public static final int STATE_DOWNLOADING

Constant Value: 0 (0x00000000)

public static final int STATE_ERROR

Constant Value: 2 (0x00000002)

public static final int STATE_INITIALIZING

Constant Value: -1 (0xffffffff)

public static final int STATE_UNINITIALIZED

Constant Value: -2 (0xfffffffe)

Public Constructors

public Downloader ()

Public Methods

public int getDownloadProgress ()

Returns
  • the download progress in percent

public int getDownloadStatus ()

Returns
  • the download status.