beginView()
Begins recording a view-through impression when ad content corresponding to the impression becomes visible.
Declaration
func beginView() async throwsDiscussion
Begin the view impression process by calling beginView(), as the following example shows:
func handleAdAppeared(impression: AppImpression) async {
do {
try await impression.beginView()
}
catch {
print("Failed to begin view-through impression: \(error).")
}
}