Reputation: 194
Help me please about opening txt files on iPhone.
private async Task ExecuteOpenFileCommandAsync()
{
Device.BeginInvokeOnMainThread(async () =>
{
var customFileType =
new FilePickerFileType(new Dictionary<DevicePlatform, IEnumerable<string>>
{
{ DevicePlatform.iOS, new[] { "blablabla" } },
{ DevicePlatform.Android, new[] { "text/plain" } }
});
var options = new PickOptions
{
PickerTitle = "Please select a file",
FileTypes = customFileType,
};
await PickAndShow(options);
});
}
I dont know, what I need to write instead "blablabla"
Thank you.
Upvotes: 0
Views: 258