JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::InAppPurchases::Download Struct Referenceabstract

iOS only: represents in-app purchase download. More...

#include <juce_InAppPurchases.h>

Public Types

enum  Status {
  Status::waiting = 0,
  Status::active,
  Status::paused,
  Status::finished,
  Status::failed,
  Status::cancelled
}
 

Public Member Functions

virtual ~Download ()
 
virtual int64 getContentLength () const =0
 Content length in bytes. More...
 
virtual String getContentVersion () const =0
 Content version. More...
 
virtual String getProductId () const =0
 A unique identifier for the in-app product to be downloaded. More...
 
virtual Status getStatus () const =0
 Returns current status of the download. More...
 

Detailed Description

iOS only: represents in-app purchase download.

Download will be available only for purchases that are hosted on the AppStore.

Member Enumeration Documentation

◆ Status

Enumerator
waiting 

The download is waiting to start.

Called at the beginning of a download operation.

active 

The download is in progress.

paused 

The download was paused and is awaiting resuming or cancelling.

finished 

The download was finished successfully.

failed 

The download failed (e.g.

because of no internet connection).

cancelled 

The download was cancelled.

Constructor & Destructor Documentation

◆ ~Download()

virtual juce::InAppPurchases::Download::~Download ( )
inlinevirtual

Member Function Documentation

◆ getContentLength()

virtual int64 juce::InAppPurchases::Download::getContentLength ( ) const
pure virtual

Content length in bytes.

◆ getContentVersion()

virtual String juce::InAppPurchases::Download::getContentVersion ( ) const
pure virtual

Content version.

◆ getProductId()

virtual String juce::InAppPurchases::Download::getProductId ( ) const
pure virtual

A unique identifier for the in-app product to be downloaded.

◆ getStatus()

virtual Status juce::InAppPurchases::Download::getStatus ( ) const
pure virtual

Returns current status of the download.


The documentation for this struct was generated from the following file: