Classes

The following classes are available globally.

  • Moderator

    Pass images to a moderator to get a verdict on the image content.

    See more

    Declaration

    Swift

    public final class Moderator
  • A content moderator for video streams, e.g. the frames captured from device cameras.

    Create one from a Moderator instance using Moderator.createStreamModerator(...).

    See more

    Declaration

    Swift

    public class StreamModerator : NSObject
  • DragonflAICore manages central API functions.

    It is important that you set the account details before using any DragonflAI classes. E.g.

     func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
         DragonflAI.SDK.setAccount(...)
         return true
     }
    

    The Logging provider for the whole SDK may be set on this class, overriding the default console logger.

    See more

    Declaration

    Swift

    public class DragonflAICore : LicenseProviding