رتبه موضوع:
  • 0 رای - 0 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
لیست و توضیحات API های SL4A
#1
این API درون کلاس Android قرار دارند و برای تمامی مفسر های SL4A یکسان و قابل دسترسی هستند.

تعریف کلاس اندروید در پایتون



کد:

import android
droid=android.Android()

تعریف کلاس اندروید در جاوااسکریپت

کد:

var droid=new Android()

مثال(پایتون):


کد:

droid.toggleWifiState()


برای دیدن API ها روی لینک های زیر کلیک کنید.
SL4A API Help

ActivityResultFacade Allows you to return results to a startActivityForResult call
AndroidFacade Some general purpose Android routines
ApplicationManagerFacade Facade for managing Applications
BatteryManagerFacade Exposes Batterymanager API
BluetoothFacade Bluetooth functions
CameraFacade Access Camera functions
CommonIntentsFacade A selection of commonly used intents
ContactsFacade Provides access to contacts related functionality
EventFacade Manage the event queue
EyesFreeFacade Provides Text To Speech services for API 3 or less
LocationFacade This facade exposes the LocationManager related functionality
MediaPlayerFacade This facade exposes basic mediaPlayer functionality
MediaRecorderFacade A facade for recording media
PhoneFacade Exposes TelephonyManager functionality
PreferencesFacade This facade allows access to the Preferences interface
SensorManagerFacade Exposes the SensorManager related functionality
SettingsFacade Exposes phone settings functionality
SignalStrengthFacade Exposes SignalStrength functionality
SmsFacade Provides access to SMS related functionality
SpeechRecognitionFacade A facade containing RPC implementations related to the speech-to-text functionality of Android
TextToSpeechFacade Provides Text To Speech services for API 4 or
more
ToneGeneratorFacade Generate DTMF tones
UiFacade User Interface Facade
WakeLockFacade A facade exposing some of the functionality of the PowerManager, in particular wake locks
WebCamFacade Manages access to camera streaming
WifiFacade Wifi functions

[عکس: <a href=www.Mojsazan.com.gif]" class="mycode_img" />
پاسخ
سپاس شده توسط


پرش به انجمن:


کاربران در حال بازدید این موضوع: 1 مهمان