SDK Entry Points
-
Richieis the main entry point to the Richie SDK.Use
Richieto construct the top-level SDK objects for ads, books and editions. You can use thesharedproperty if you prefer a singleton, or just pass around an instance.Richiestores the objects you create, so that the first call tomakeXcreates theX, and subsequent calls return the same object.Every
See moreRichieinstance in a process shares the same objects. Constructing one with a different identifier than the first is a programming error.Declaration
Swift
@MainActor public final class Richie -
RichieAdsControlleris the main interface for loading ads with Richie SDK.If possible, you should be using this class instead of
RichieAds. RichieAds does not force usage from the main thread but strongly recommends it; this class forces the issue and defines itself to work on the main actor.Use
See moremakeAds()to get the instance. The SDK supports one per process.Declaration
Swift
@MainActor public final class RichieAdsController -
Main class of Richie’s Editions SDK.
To construct an
See moreEditionsinstance, usemakeEditions(analyticsListener:tokenProvider:).Declaration
Swift
@MainActor public class Editions -
See moreBooksLibraryControlleris the main entry point for the books functionality of Richie SDK.Declaration
Swift
@MainActor @objc public class BooksLibraryController : NSObject
SDK Entry Points Reference