endView()
Ends the view-through impression when the ad content corresponding to the impression disappears.
Declaration
func endView() async throwsDiscussion
End the view-through impression, as the following example shows:
func handleAdDisappeared(impression: AppImpression) async {
do {
try await impression.endView()
}
catch {
print("Failed to end view-through impression: \(error).")
}
}