Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to display image in default application by Uri on iOS?

yurno_thyurno_th Member ✭✭
edited December 2020 in Xamarin.iOS

This is my sample code to open image in default application by Uri.

//Path to image in application folder
string url = "Users/user926016/Library/Developer/CoreSimulator/Devices/26C66060-1CC0-461F-8C40-643598DDE838/data/Containers/Data/Application/8799A471-29D0-44B2-A244-A3CB24429F26/Library/MyApplication/Documents/Images/image.jpg";

RunOnDeviceMainThread(() => {
UIApplication.SharedApplication.OpenUrl(new NSUrl(url));
});

I want to show image full screen when click on the image.
I have Uri path to image already, but i don't known how to open image to full screen via default application.

Best Answer

  • yurno_thyurno_th Member ✭✭
    Accepted Answer

    @ColeX said:
    How to display image in default application by Uri on iOS?

    What is default application ? Do you mean the Photo application ?

    Why don't you show the image on a UIImageView and make it full screen inside your application ?

    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

    @ColeX said:
    How to display image in default application by Uri on iOS?

    What is default application ? Do you mean the Photo application ?

    Why don't you show the image on a UIImageView and make it full screen inside your application ?

    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

    I want to show photo like a popup and i found some plugin for show already.
    -> https://github.com/stormlion227/PhotoBrowser.Forms

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    How to display image in default application by Uri on iOS?

    What is default application ? Do you mean the Photo application ?

    Why don't you show the image on a UIImageView and make it full screen inside your application ?


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

  • yurno_thyurno_th Member ✭✭
    Accepted Answer

    @ColeX said:
    How to display image in default application by Uri on iOS?

    What is default application ? Do you mean the Photo application ?

    Why don't you show the image on a UIImageView and make it full screen inside your application ?

    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

    @ColeX said:
    How to display image in default application by Uri on iOS?

    What is default application ? Do you mean the Photo application ?

    Why don't you show the image on a UIImageView and make it full screen inside your application ?

    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

    I want to show photo like a popup and i found some plugin for show already.
    -> https://github.com/stormlion227/PhotoBrowser.Forms

Sign In or Register to comment.