This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest android:installLocation="auto"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<!-- Optional permission for reliable local dispatching on non-Google Play devices --> | |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<application> | |
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tracker:Tracker = GoogleAnalytics.service.getTracker( "YOUR_TRACKING_ID" ); | |
// Set a value that will be sent with every message | |
tracker.setValue( "&uid", "userIdString" ); | |
// com.distriqt.GoogleAnalytics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tracker:Tracker = GoogleAnalytics.service.getTracker( "YOUR_TRACKING_ID" ); | |
// Sets the screen name. This will be sent with any subsequent events / views on this tracker | |
tracker.setScreenName( "currentScreenName" ); | |
tracker.send( new ScreenViewBuilder().build() ); | |
// com.distriqt.GoogleAnalytics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tracker:Tracker = GoogleAnalytics.service.getTracker( "YOUR_TRACKING_ID" ); | |
tracker.send( | |
new EventBuilder() | |
.setCategory( "user" ) | |
.setAction( "signIn" ) | |
.setValue( 123 ) | |
.build() ); | |
// com.distriqt.GoogleAnalytics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tracker:Tracker = GoogleAnalytics.service.getTracker( "YOUR_TRACKING_ID" ); | |
// Send the overview of the transaction | |
tracker.send( | |
new TransactionBuilder() | |
.setTransactionId(transactionId) | |
.setAffiliation("internal") | |
.setRevenue(12.22) | |
.setTax(0) | |
.setShipping(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.MovieClip; | |
import com.distriqt.extension.gyroscope.Gyroscope; | |
import com.distriqt.extension.gyroscope.events.GyroscopeEvent; | |
public class Main extends MovieClip | |
{ | |
public static const APP_KEY: String = "APPLICATION_KEY"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CameraRollExtended.service.addEventListener( AuthorisationEvent.CHANGED, authorisationChangedHandler ); | |
switch (CameraRollExtended.service.authorisationStatus()) | |
{ | |
case AuthorisationStatus.SHOULD_EXPLAIN: | |
case AuthorisationStatus.NOT_DETERMINED: | |
// REQUEST ACCESS: This will display the permission dialog | |
CameraRollExtended.service.requestAccess(); | |
return; | |
case AuthorisationStatus.DENIED: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CameraRollExtended.init( APP_KEY ); | |
if (CameraRollExtended.isSupported) | |
{ | |
CameraRollExtended.service.addEventListener( CameraRollExtendedEvent.CANCEL, cancelHandler ); | |
CameraRollExtended.service.addEventListener( CameraRollExtendedEvent.SELECT, selectHandler ); | |
var options:CameraRollExtendedBrowseOptions = new CameraRollExtendedBrowseOptions(); | |
options.maximumCount = 5; | |
options.type = Asset.IMAGE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asset:Asset = ... ; // Asset retrieved via user selection (browseForAsset) | |
if (asset.type == Asset.IMAGE) | |
{ | |
CameraRollExtended.service.addEventListener( CameraRollExtendedEvent.ASSET_LOADED, assetLoadedHandler ); | |
CameraRollExtended.service.loadAssetByURL( asset.url, AssetRepresentation.THUMBNAIL ); | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asset:Asset = ... ; // Asset retrieved via user selection (browseForAsset) | |
var f:File = CameraRollExtended.service.getFileForAsset( asset ); | |
if (f != null && f.exists) | |
{ | |
trace( "ASSET FILE: "+f.nativePath ); | |
// Use File as you require | |
} | |
// com.distriqt.CameraRollExtended |