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.removeEventListener( LocationEvent.UPDATE, location_updateHandler ); | |
| var success:Boolean = Location.service.stopLocationMonitoring(); | |
| // 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.addEventListener( LocationEvent.UPDATE, location_updateHandler ); | |
| var request:LocationRequest = new LocationRequest(); | |
| request.accuracy = LocationRequest.ACCURACY_NEAREST_TEN_METERS; | |
| request.priority = LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY; | |
| var success:Boolean = Location.service.startLocationMonitoring( request ); | |
| ... |
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
| <key>UIDeviceFamily</key> | |
| <array> | |
| <string>1</string> | |
| </array> | |
| <key>UIRequiredDeviceCapabilities</key> | |
| <array> | |
| <string>location-services</string> | |
| </array> |
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_FINE_LOCATION"/> | |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
| <application> | |
| <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> | |
| <receiver android:name="com.distriqt.extension.location.receivers.GeofenceTransitionReceiver"> |
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
| if (Message.isMailSupported) | |
| { | |
| var email:String = "[email protected]"; | |
| var subject:String = "Sending HTML email from AIR using the distriqt Message ANE"; | |
| var body:String = | |
| "<div>"+ | |
| "<p>This HTML email was sent using the distriqt <b>Message ANE</b></p>"+ | |
| "A link: <a href='http://airnativeextensions.com'>airnativeextensions.com</a>"+ | |
| "<br/>" + |
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
| if (Message.isSMSSupported) | |
| { | |
| Message.service.addEventListener( MessageSMSEvent.MESSAGE_SMS_CANCELLED, smsEventHandler ); | |
| Message.service.addEventListener( MessageSMSEvent.MESSAGE_SMS_SENT, smsEventHandler ); | |
| Message.service.addEventListener( MessageSMSEvent.MESSAGE_SMS_SENT_ERROR, smsEventHandler ); | |
| var sms:SMS = new SMS(); | |
| sms.address = "0444444444"; | |
| sms.message = "Sending an SMS with the distriqt Message ANE"; | |
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.WRITE_EXTERNAL_STORAGE"/> | |
| <uses-permission android:name="android.permission.WRITE_SMS" /> | |
| <uses-permission android:name="android.permission.SEND_SMS" /> | |
| <uses-permission android:name="android.permission.READ_SMS" /> | |
| <uses-permission android:name="android.permission.RECEIVE_SMS" /> | |
| <application> |
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 savedGame:SavedGame = ...; // This should be a reference to a saved from returned from a load or open | |
| GameServices.service.savedGames.addEventListener( SavedGamesEvent.DELETE_SUCCESS, savedGamesDeleteSuccessHandler ); | |
| GameServices.service.savedGames.addEventListener( SavedGamesEvent.DELETE_ERROR, savedGamesDeleteErrorHandler ); | |
| GameServices.service.savedGames.deleteGame( savedGame ); | |
| ... | |
| private function savedGamesDeleteSuccessHandler( event:SavedGamesEvent ):void |
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 savedGame:SavedGame = ...; // This should be the currently opened user saved game | |
| // Some game data | |
| var data:String = "<game><a>data</a><b>"+Math.random().toPrecision(5)+"</b></game>"; | |
| // Change the description of the saved game | |
| savedGame.description = "Saved game " + String( 1000 * Math.random()); | |
| // Write the new data | |
| savedGame.data.clear(); |