PREMIND.SDK.iOS
1.0.1
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PREMIND.SDK.iOS
Installation
Nuget
- On the “Packages” node under your project in the Solution pane, click the gear button and select “Add Packages…”
- Type “Premind” in the search box
- Select
PREMIND.SDK.iOS
and add it - You should see
Realm
andFlurl
added as dependencies.
Manually
- Add the
PremindSDK.dll
to the project reference - Add the dependency files
Flurl.dll
Flurl.Http.dll
Newtonsoft.Json.dll
- 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 | Versions 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.
-
Xamarin.iOS 1.0
- Flurl (>= 2.8.0)
- Flurl.Http (>= 2.4.0)
- Microsoft.NETCore.Platforms (>= 2.1.1)
- NETStandard.Library (>= 2.0.3)
- Newtonsoft.Json (>= 11.0.2)
- Realm (>= 3.2.1)
- Realm.Database (>= 3.2.1)
- Realm.DataBinding (>= 1.2.0)
- Remotion.Linq (>= 2.2.0)
- System.Reflection.TypeExtensions (>= 4.5.1)
- System.Runtime.CompilerServices.Unsafe (>= 4.5.2)
- System.Text.Encoding.CodePages (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.