Relative Content

Tag Archive for xamarinmaui

Handling platform exceptions in MAUI

The question is whether platform exceptions (Android and iOS) are automatically converted to c# exceptions. In particular, for iOS I have a method doSomething(some params, NSError** error). Does MAUI automatically checks that the error when calling doSomething and throws exception? For Android my method doSomething throws java.lang.RuntimeException, can I catch it as a c# exception?

local folder image not loading issue in MAUI

I have a MAUI app. I am creating folder call Theme inside the device. and my images are there. When I tried to get the image my path FileSystem.AppDataDirectory shows following file path. So I tried to remove this files part manually and tried but i am getting null value. This theme folder is inside the App folder like files folder.