跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.kontext.so/llms.txt

Use this file to discover all available pages before exploring further.

Swift SDK

看看用我们轻量的 SDK 接入高性能广告有多简单。

环境要求

  • iOS 14.0+
  • Swift 5.9+
  • Xcode 15+
你需要一个 发布方账号 来获取 publisherToken 与 placement code。

安装

通过 SPM 或 CocoaPods 添加 SDK,配置 ATT 与 SKAdNetwork。

展示第一个广告

创建会话、喂入消息、挂载广告——五分钟完成接入。

API 参考

SDK 暴露的全部类型与方法。

实践指南

no-fill、切换 character、SwiftUI 封装等常见模式。

示例应用

使用你自己的 publisher token 端到端运行 UIKit 示例。