PayloadTransferUpdate

public final class PayloadTransferUpdate extends Object
implements Parcelable

Describes the status for an active Payload transfer, either incoming or outgoing. Delivered to PayloadCallback.onPayloadTransferUpdate(String, PayloadTransferUpdate).

Nested Class Summary

class PayloadTransferUpdate.Builder Builder class for PayloadTransferUpdate. 
@interface PayloadTransferUpdate.Status The status of the payload transfer at the time of this update. 

Inherited Constant Summary

Field Summary

public static final Creator<PayloadTransferUpdate> CREATOR

Public Method Summary

boolean
equals(Object other)
long
getBytesTransferred()
Returns the number of bytes transferred so far.
long
getPayloadId()
Returns the payload identifier.
int
getStatus()
Returns the status of the payload.
long
getTotalBytes()
Returns the total number of bytes in the payload.
int
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<PayloadTransferUpdate> CREATOR

Public Methods

public boolean equals (Object other)

public long getBytesTransferred ()

Returns the number of bytes transferred so far.

public long getPayloadId ()

Returns the payload identifier.

public int getStatus ()

Returns the status of the payload.

public long getTotalBytes ()

Returns the total number of bytes in the payload.

public int hashCode ()

public void writeToParcel (Parcel dest, int flags)