SDK Entry Points
-
Richie
is the main entry point to the Richie SDK.Use
Richie
to construct the top-level SDK objects for ads, books and editions. You can use theshared
property if you prefer a singleton, or just pass around an instance.Richie
stores the objects you create, so that the first call tomakeX
creates theX
, and subsequent calls return the same object.Warning
Do not construct multiple
Richie
instances at the same time. They use the same resources on disk and will interfere with each other.If you recreate the
See moreRichie
instance during the life of your application, callinvalidate
on the old instance before its deallocated. This will also invalidate all objects created by that factory instance, and their behavior after that is undefined.Declaration
Swift
@MainActor public final class Richie
-
RichieAdsController
is 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.If you create a
See moreRichieAdsController
, yourself, you should callinvalidate()
on it before relinquishing the last reference. If you useRichie
to create it, it keeps a reference to theRichieAdsController
it creates and you should use itsinvalidate
method instead.Declaration
Swift
@MainActor public final class RichieAdsController
-
Main class of Richie’s Editions SDK.
See moreDeclaration
Swift
@MainActor public class Editions
-
See moreBooksLibraryController
is the main entry point for the books functionality of Richie SDK.Declaration
Swift
@MainActor @objc public class BooksLibraryController : NSObject