@capgo/capacitor-home-indicator 8.0.45 → 8.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-home-indicator
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Hide or show the home indicator bar from your Capacitor app for immersive screens like video, games and kiosks.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_home_indicator"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-home-indicator" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_home_indicator">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_home_indicator">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-home-indicator/main/assets/github-social-preview.png" alt="@capgo/capacitor-home-indicator for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Hide**: `hide()` hides the home indicator.
|
|
21
|
+
- **Show**: `show()` brings it back.
|
|
22
|
+
- **State**: `isHidden()` reports the current state.
|
|
23
|
+
- **iOS**: uses the view controller's auto-hidden home indicator preference.
|
|
24
|
+
- **Platforms**: iOS and Android. Android needs a small `MainActivity` change described below.
|
|
25
|
+
|
|
9
26
|
hide and show home button indicator in Capacitor app
|
|
10
27
|
|
|
11
28
|
# Android
|
|
@@ -23,7 +40,6 @@ import com.getcapacitor.BridgeActivity;
|
|
|
23
40
|
|
|
24
41
|
public class MainActivity extends BridgeActivity {
|
|
25
42
|
|
|
26
|
-
|
|
27
43
|
void fixSafeArea() {
|
|
28
44
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
29
45
|
getWindow().setDecorFitsSystemWindows(false);
|
|
@@ -35,7 +35,7 @@ public class CapgoHomeIndicatorPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
35
35
|
CAPPluginMethod(name: "getPluginVersion", returnType: CAPPluginReturnPromise)
|
|
36
36
|
]
|
|
37
37
|
|
|
38
|
-
private let pluginVersion: String = "8.0.
|
|
38
|
+
private let pluginVersion: String = "8.0.46"
|
|
39
39
|
|
|
40
40
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
41
41
|
call.resolve(["version": self.pluginVersion])
|