how to Prevent ScreenShoting in Xamarin.ios ? RRS feed

  • Question

  • User393867 posted

    Hi, I'm have A Project With Xamarin.Forms and in Project Xamarin.Android i can Prevent To Screen Recording but, In Xamarin.ios i Can't Prevent ScreenShoting Please Help To Me for "how to Prevent ScreenShoting in Xamarin.ios ?"

    Wednesday, September 16, 2020 4:14 PM

All replies

  • User371688 posted

    There is no API available to disable the screenshots in iOS. Instead , you can use the Screenshot detection method in your application and remove/delete the screenshot taken from the device.

    Detect Screenshot: https://gist.github.com/dannycabrera/b83bb0eac343284521516122157c0335#file-appdelegate-cs

    Delete Screenshot: https://stackoverflow.com/questions/24930551/delete-image-from-documents-directory-ios-xamarin

    Refer: https://www.c-sharpcorner.com/forums/how-to-disable-the-screenshot-in-xamarinforms-ios#:~:text=There%20is%20no%20API%20available,screenshot%20taken%20from%20the%20device.

    And there are some similar threads about this, you can check it here: https://stackoverflow.com/questions/37960257/is-there-a-way-to-disable-screenshot-in-xamarin-forms

    Thursday, September 17, 2020 3:16 AM
  • User371688 posted

    Hi @Nick_ehsanjahangard , have you resolved your question?

    Thursday, September 24, 2020 6:06 AM
  • User393867 posted

    NotWork, @jezh

    Saturday, September 26, 2020 3:20 PM
  • User371688 posted

    What have you tried? What are the specific problems?

    Monday, September 28, 2020 9:12 AM
  • User393867 posted

    My Problem: In Xamarin.ios how to Prevent To Screen Recording (when i start recording in iphone run my App not way to handle that the user recording screen) Please Help To Me

    Tuesday, September 29, 2020 5:28 AM
  • User245203 posted

    I guess you cannot do it then.

    Tuesday, September 29, 2020 2:38 PM