![]() | Getting Started |
AC908 SDK is used to control AC908.
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.
Add AC908_SDK.dll, CommonBleAbstraction.dll and XamarinAndroidBleSdk.dll reference to Xamarin.Android project.
Add AC908_SDK.dll, CommonBleAbstraction.dll and XamarinIosBleSdk.dll reference to Xamarin.iOS project.
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().
Include Bluetooth usage description keys in Info.plist.
Invoke XamarinAndroidBleSdk.Sdk.Initialize() before calling any API.