![]() |
VOOZH | about |
dotnet add package mParticle.Maui.Kits.Rokt --version 4.2.0
NuGet\Install-Package mParticle.Maui.Kits.Rokt -Version 4.2.0
<PackageReference Include="mParticle.Maui.Kits.Rokt" Version="4.2.0" />
<PackageVersion Include="mParticle.Maui.Kits.Rokt" Version="4.2.0" />Directory.Packages.props
<PackageReference Include="mParticle.Maui.Kits.Rokt" />Project file
paket add mParticle.Maui.Kits.Rokt --version 4.2.0
#r "nuget: mParticle.Maui.Kits.Rokt, 4.2.0"
#:package mParticle.Maui.Kits.Rokt@4.2.0
#addin nuget:?package=mParticle.Maui.Kits.Rokt&version=4.2.0Install as a Cake Addin
#tool nuget:?package=mParticle.Maui.Kits.Rokt&version=4.2.0Install as a Cake Tool
The Rokt .NET MAUI SDK contains bindings for the Rokt native iOS and Android mobile SDKs. It provides a common API interface for ease of integration with iOS and Android targets.
The project utilizes Maui Native Library Interop to create the bindings. These bindings are used by the Rokt SDK wrapper APIs to expose the native library functionality.
Read the docs here: https://docs.rokt.com/developers/integration-guides/maui/overview
After MParticle.Instance.Initialize(options), the Rokt API is available via
MParticle.Instance.Rokt.
Available methods:
SelectPlacements(identifier, attributes, embeddedViews, config)SelectShoppableAds(identifier, attributes, config)Events(identifier, onEvent) for placement-specific event subscriptionGlobalEvents(onEvent) for all Rokt eventsExample placement selection:
var attributes = new Dictionary<string, string>
{
["country"] = "US",
["email"] = "jenny.smith@example.com"
};
MParticle.Instance.Rokt.SelectPlacements(
identifier: "StgRoktShoppableAds",
attributes: attributes,
embeddedViews: new Dictionary<string, RoktEmbeddedView>
{
["Location1"] = myEmbeddedView
},
config: null
);
Example shoppable ads selection:
MParticle.Instance.Rokt.SelectShoppableAds(
identifier: "StgRoktShoppableAds",
attributes: attributes,
config: null
);
Example event subscriptions:
MParticle.Instance.Rokt.Events("StgRoktShoppableAds", roktEvent =>
{
Console.WriteLine($"Rokt event: {roktEvent.GetType().Name}");
});
MParticle.Instance.Rokt.GlobalEvents(roktEvent =>
{
Console.WriteLine($"Global Rokt event: {roktEvent.GetType().Name}");
});
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 net10.0-android36.0 is compatible. net10.0-ios26.0 net10.0-ios26.0 is compatible. |
Showing the top 1 NuGet packages that depend on mParticle.Maui.Kits.Rokt:
| Package | Downloads |
|---|---|
|
mParticle.Maui.Kits.Rokt.Payments
Optional Apple Pay / Stripe payment extension for the mParticle Rokt MAUI kit. Enables payment flows in Rokt Shoppable Ads. |
This package is not used by any popular GitHub repositories.