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
CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.UPDATE_START, updateStartHandler ); | |
CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.UPDATE_END, updateEndHandler ); | |
CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.FILES_DID_CHANGE, filesDidChangeHandler ); | |
... | |
private function updateStartHandler( event:DocumentStoreEvent ):void | |
{ | |
trace( "update started" ); | |
} |
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
CloudStorage.service.documentStore.addEventListener( DocumentStoreEvent.INITIALISED, initialisedHandler ); | |
CloudStorage.service.documentStore.setup(); // This will use the default / first container | |
... | |
private function ds_initialisedHandler( event:DocumentStoreEvent ):void | |
{ | |
trace( "cloud container initialised" ); | |
} |
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
<InfoAdditions><![CDATA[ | |
<key>UIDeviceFamily</key> | |
<array> | |
<string>1</string> | |
<string>2</string> | |
</array> | |
<key>UIBackgroundModes</key> | |
<array> | |
<string>bluetooth-central</string> | |
<string>bluetooth-peripheral</string> |
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.BLUETOOTH"/> | |
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> | |
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/> | |
</manifest> |
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 promotion:Promotion = new Promotion() | |
.setId("PROMO_1234") | |
.setName("Summer Sale") | |
.setCreative("summer_banner2") | |
.setPosition("banner_slot1"); | |
var builder:ScreenViewBuilder = ScreenViewBuilder( | |
new ScreenViewBuilder() | |
.addPromotion( promotion ) | |
); |
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 product:Product = new Product() | |
.setId( "P12345" ) | |
.setName("Android Warhol T-Shirt") | |
.setCategory("Apparel/T-Shirts") | |
.setBrand("Google") | |
.setVariant("black") | |
.setPrice(29.20) | |
.setCouponCode("APPARELSALE") | |
.setQuantity(1); |
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 product:Product = new Product() | |
.setId( "P12345" ) | |
.setName("Android Warhol T-Shirt") | |
.setCategory("Apparel/T-Shirts") | |
.setBrand("Google") | |
.setVariant("black") | |
.setPrice(29.20) | |
.setCouponCode("APPARELSALE") | |
.setQuantity(1); |
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 success:Boolean = Location.service.geofences.stopMonitoringRegion( region ); | |
Location.service.geofences.removeEventListener( RegionEvent.START_MONITORING, startMonitoringHandler ); | |
Location.service.geofences.removeEventListener( RegionEvent.STOP_MONITORING, stopMonitoringHandler ); | |
Location.service.geofences.removeEventListener( RegionEvent.ENTER, enterHandler ); | |
Location.service.geofences.removeEventListener( RegionEvent.EXIT, exitHandler ); | |
// com.distriqt.Location |
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
Location.service.geofences.addEventListener( RegionEvent.START_MONITORING, startMonitoringHandler ); | |
Location.service.geofences.addEventListener( RegionEvent.STOP_MONITORING, stopMonitoringHandler ); | |
Location.service.geofences.addEventListener( RegionEvent.ENTER, enterHandler ); | |
Location.service.geofences.addEventListener( RegionEvent.EXIT, exitHandler ); | |
var region:Region = new Region(); | |
region.identifier = "some-unique-id"; | |
region.latitude = 14.123456; | |
region.longitude = 12.345678; | |
region.radius = 100; |