| Package | com.myflashlab.air.extensions.googleGames |
| Class | public class SnapshotMetadata |
| Inheritance | SnapshotMetadata Object |
| Property | Defined By | ||
|---|---|---|---|
| coverImageAspectRatio : Number [read-only]
Retrieves the aspect ratio of the cover image for this snapshot, if any. | SnapshotMetadata | ||
| description : String [read-only]
Retrieves the description of this snapshot. | SnapshotMetadata | ||
| deviceName : String [read-only]
Retrieves the name of the device that wrote this snapshot, if known. | SnapshotMetadata | ||
| gameMetadata : Game [read-only]
Retrieves the game associated with this snapshot. | SnapshotMetadata | ||
| hasChangePending : Boolean [read-only]
Indicates whether or not this snapshot has any changes pending that have not been uploaded to the server. | SnapshotMetadata | ||
| lastModifiedTimestamp : Number [read-only]
Retrieves the last time this snapshot was modified, in millis since epoch. | SnapshotMetadata | ||
| owner : Player [read-only]
Retrieves the player that owns this snapshot. | SnapshotMetadata | ||
| playedTime : Number [read-only]
Retrieves the played time of this snapshot in milliseconds. | SnapshotMetadata | ||
| progressValue : Number [read-only]
Retrieves the progress value for this snapshot. | SnapshotMetadata | ||
| snapshotId : String [read-only]
Retrieves the ID of this snapshot. | SnapshotMetadata | ||
| uniqueName : String [read-only]
Unique identifier of this snapshot. | SnapshotMetadata | ||
| Method | Defined By | ||
|---|---|---|---|
loadcoverImage($forceReload:Boolean, $callback:Function):void | SnapshotMetadata | ||
| coverImageAspectRatio | property |
coverImageAspectRatio:Number [read-only] Retrieves the aspect ratio of the cover image for this snapshot, if any. This is the ratio of width to height, so a value > 1.0f indicates a landscape image while a value < 1.0f indicates a portrait image. If the snapshot has no cover image, this will return 0.0f.
public function get coverImageAspectRatio():Number| description | property |
description:String [read-only] Retrieves the description of this snapshot.
public function get description():String| deviceName | property |
deviceName:String [read-only] Retrieves the name of the device that wrote this snapshot, if known.
public function get deviceName():String| gameMetadata | property |
gameMetadata:Game [read-only] Retrieves the game associated with this snapshot.
public function get gameMetadata():Game| hasChangePending | property |
hasChangePending:Boolean [read-only] Indicates whether or not this snapshot has any changes pending that have not been uploaded to the server. Once all changes have been flushed to the server, this will return false.
public function get hasChangePending():Boolean| lastModifiedTimestamp | property |
lastModifiedTimestamp:Number [read-only] Retrieves the last time this snapshot was modified, in millis since epoch.
public function get lastModifiedTimestamp():Number| owner | property |
owner:Player [read-only] Retrieves the player that owns this snapshot.
public function get owner():Player| playedTime | property |
playedTime:Number [read-only] Retrieves the played time of this snapshot in milliseconds.
public function get playedTime():Number| progressValue | property |
progressValue:Number [read-only] Retrieves the progress value for this snapshot.
public function get progressValue():Number| snapshotId | property |
snapshotId:String [read-only] Retrieves the ID of this snapshot.
public function get snapshotId():String| uniqueName | property |
uniqueName:String [read-only] Unique identifier of this snapshot. This name should be unique within the scope of the application.
public function get uniqueName():String| loadcoverImage | () | method |
public function loadcoverImage($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|