MoEngageInAppAssetsManager

@objc
public final class MoEngageInAppAssetsManager : NSObject

Manages In-App campaign assets: downloading images/HTML resources, resolving local file paths, and removing expired or campaign-specific assets. Exposed to Objective-C via the generated MoEngageInApps-Swift.h (no separate .h).

  • Swift callers can use shared; Obj-C uses sharedAssetsManager.

    Declaration

    Swift

    @objc
    public static func sharedAssetsManager() -> MoEngageInAppAssetsManager
  • Declaration

    Swift

    public static let shared: MoEngageInAppAssetsManager

Image / path utilities (public API)

Delete / cleanup (public API)

Image/HTML asset download

Video & network

  • Get video resource name from URL.

    Declaration

    Swift

    public func getInAppVideoName(for url: URL) -> String
  • Moves a resource to the new path, creating parent directories if needed.

    Declaration

    Swift

    public func move(resource: URL, to newPath: URL) throws