Contents

endView()

Ends the view-through impression when the ad content corresponding to the impression disappears.

Declaration

func endView() async throws

Discussion

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).")
       }
   }    

See Also

Displaying view-through ads