PREMIND.SDK.iOS 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package PREMIND.SDK.iOS --version 1.0.1
NuGet\Install-Package PREMIND.SDK.iOS -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PREMIND.SDK.iOS" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PREMIND.SDK.iOS --version 1.0.1
#r "nuget: PREMIND.SDK.iOS, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PREMIND.SDK.iOS as a Cake Addin
#addin nuget:?package=PREMIND.SDK.iOS&version=1.0.1

// Install PREMIND.SDK.iOS as a Cake Tool
#tool nuget:?package=PREMIND.SDK.iOS&version=1.0.1

PREMIND.SDK.iOS

Installation

Nuget

  1. On the “Packages” node under your project in the Solution pane, click the gear button and select “Add Packages…”
  2. Type “Premind” in the search box
  3. Select PREMIND.SDK.iOS and add it
  4. You should see Realm and Flurl added as dependencies.

Manually

  1. Add the PremindSDK.dll to the project reference
  2. Add the dependency files
Flurl.dll
Flurl.Http.dll
Newtonsoft.Json.dll
  1. Install the Realm library from Nuget https://realm.io/docs/dotnet/latest/#installation Note: add the FodyWeavers.xml file to the project

Setup

In the Info.plist file, add 2 new properties for the API authentication

PremindAppKey (string) = <Your API Key>
PremindAppSecret (string) = <Your API Secret>

In the Background Modes, check Enable Background Modes

  • Location Updates
  • Uses Bluetooth LE accessories
  • Background Fetch
  • Remote Notifications

In the Info.plist source, add these notes for Location Services

Privacy - Location Always and When In Use Usage Description (string) = <Your description>
Privacy - Location When In Use Usage Description (string) = <Your description>
Privacy - Location Always Usage Description (string) = <Your description>

How to use

In AppDelegate.cs file, add these code

public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
  ...
  Premind.Shared.FinishedLaunching(application, launchOptions);
  ...
}
[Export("application:performFetchWithCompletionHandler:")]
public override void PerformFetch(UIApplication application, Action<UIBackgroundFetchResult> completionHandler)
{
  Premind.Shared.PerformFetch(application, completionHandler);
}

Authenticate with your own User ID or Token, make sure it is unique and not expired (with Token)

var ok = await Premind.Shared.Authenticate("User ID");

After authentication, you can start scanning our devices

var ok = Premind.Shared.Start(
  (device) =>
  {
    ... your code here ...
  },
  (device) =>
  {
    ... your code here ...
  });

Stop scanning

Premind.Shared.Stop()

Turn On/Off the incognito mode

var ok = await Premind.Shared.SetIncognito(mode);

Get the inbound devices

var devices = Premind.Shared.GetDevices();
Product Compatible and additional computed target framework versions.
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 1,685 12/7/2018
1.0.1 1,326 10/2/2018