iOS SDK - 入力のトラッキング
トラッカーは値の変更イベントを(デバウンス付きで)リッスンし、結果の値を OpenReplay バックエンドに送信します。
トラッキング対象の入力を追加する
Section titled トラッキング対象の入力を追加するSwiftUI
Section titled SwiftUI.observeInput(text:label:masked) を使用して、入力イベントを監視します。
text: String- 入力のテキスト値label: String- 記録される入力のラベルmasked: Bool-trueの場合、トラッカーは値ではなく入力イベントそのものだけを記録します。録画から入力をぼかすために.sensitiveを追加することも忘れないでください。
import ORTracker
TextField("Input", text: $text)
.observeInput(text: $text, label: "tracker input #1", masked: Bool)
UIKit
Section titled UIKitUIKit は、プレースホルダーをラベルとして使用し、sender.isSecureTextEntry を使って入力をマスクします。
import ORTracker
Analytics.shared.addObservedInput(inputEl)
ご質問はありますか?
Section titled ご質問はありますか?この手順についてご不明な点がございましたら、お気軽に Slack までお問い合わせください。