Click or drag to resize

Getting Started

AC908 SDK is used to control AC908.

If you are using Xamarin.Forms:
  • Add AC908_SDK.dll and CommonBleAbstraction.dll reference to Xamarin.Forms main project (cross platform).

  • Add XamarinAndroidBleSdk.dll and CommonBleAbstraction.dll reference to Xamarin.Forms Android project.

  • Add XamarinIosBleSdk.dll and CommonBleAbstraction.dll reference to Xamarin.Forms iOS project.

If you are using Xamarin.Android:
  • Add AC908_SDK.dll, CommonBleAbstraction.dll and XamarinAndroidBleSdk.dll reference to Xamarin.Android project.

If you are using Xamarin.iOS:
  • Add AC908_SDK.dll, CommonBleAbstraction.dll and XamarinIosBleSdk.dll reference to Xamarin.iOS project.

Initialize SDK in Android projects
  • Request Location permission with XamarinAndroidBleSdk.Sdk.RequestLocationPermission(Activity) or your own method.

  • Request enable Location with XamarinAndroidBleSdk.Sdk.RequestEnableLocation(Activity) or your own method.

  • Request to enable Bluetooth with XamarinAndroidBleSdk.Sdk.RequestEnableBluetooth(Activity) or your own method.

  • Request to register Android receiver with XamarinAndroidBleSdk.Sdk.RegisterTurnOffBluetoothReceiver(Activity) if you want peripheral to be able to detect that Bluetooth is turned off.

  • Invoke XamarinAndroidBleSdk.Sdk.Initialize() before calling any API. For example, inside OnCreate().

Initialize SDK in iOS projects
  • Include Bluetooth usage description keys in Info.plist.

  • Invoke XamarinAndroidBleSdk.Sdk.Initialize() before calling any API.

See Also

Other Resources