-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adding missing Essentials APIs
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
uid: Plugins.Essentials.LatestVersion | ||
--- | ||
|
||
# Latest Version | ||
|
||
The `ILatestVersion` provides a cross platform and cross framework API to check if your app is up to date. By default this is Support on Android, iOS, MacCatalyst and WinUI. The interface is also resolvable for WPF and the remaining Uno Platform targets. For the unsupported targets `SupportsAppStore` will return false. `IsUsingLatestVersion` will return true and `GetLatestVersionNumber` will return the current app version. `OpenAppInStore` will throw a `PlatformNotSupportedException`. | ||
|
||
```cs | ||
public interface ILatestVersion | ||
{ | ||
string CountryCode { get; set; } | ||
|
||
string InstalledVersionNumber { get; } | ||
|
||
bool SupportsAppStore { get; } | ||
|
||
Task<bool> IsUsingLatestVersion(); | ||
|
||
Task<string> GetLatestVersionNumber(); | ||
|
||
Task OpenAppInStore(); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
uid: Plugins.Essentials.PhoneDialer | ||
--- | ||
|
||
# Phone Dialer | ||
|
||
The `IPhoneDialer` provides a cross platform API to open a Phone number on Android and iOS. This API is exposed on all Prism platforms and will provide a default implementation where `IsSupported` will provide a value of false. You should check this before attempting to open a phone number. | ||
|
||
```cs | ||
public interface IPhoneDialer | ||
{ | ||
bool IsSupported { get; } | ||
|
||
void Open(string number); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters