Skip to content

Commit

Permalink
docs update & removed SafeAreaElement class export
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashu-Dubey committed Jun 17, 2023
1 parent 8408739 commit cfb162a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,20 @@ Get the Status bar height on Android and iOS, and on Web it returns 0.
### getSafeAreaInsets()
```typescript
getSafeAreaInsets() => Promise<SafeAreaType>
getSafeAreaInsets() => Promise<SafeAreaInset>
```
Get the Safe area insets for Android and iOS, and on Web it returns 0 for all.
**Returns:** <code>Promise&lt;<a href="#safeareatype">SafeAreaType</a>&gt;</code>
**Returns:** <code>Promise&lt;<a href="#safeareainset">SafeAreaInset</a>&gt;</code>
--------------------
### Interfaces
#### SafeAreaType
#### SafeAreaInset
| Prop | Type | Description |
| ------------ | ------------------- | -------------------------------- |
Expand Down
14 changes: 7 additions & 7 deletions ios/PluginTests/SafeAreaTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class SafeAreaTests: XCTestCase {
}

/* func testEcho() {
// This is an example of a functional test case for a plugin.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// This is an example of a functional test case for a plugin.
// Use XCTAssert and related functions to verify your tests produce the correct results.

let implementation = SafeArea()
let value = "Hello, World!"
let result = implementation.echo(value)
let implementation = SafeArea()
let value = "Hello, World!"
let result = implementation.echo(value)

XCTAssertEqual(value, result)
} */
XCTAssertEqual(value, result)
} */
}
2 changes: 1 addition & 1 deletion src/element.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SafeArea } from './index';

export class SafeAreaElement extends HTMLElement {
class SafeAreaElement extends HTMLElement {
mode: 'padding' | 'margin';
edges?: string;

Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { registerPlugin } from '@capacitor/core';

import { SafeAreaController } from './controller';
import type { SafeAreaPlugin, SafeAreaHTMLProps } from './definitions';
import { SafeAreaElement, registerSafeAreaElement } from './element';
import { registerSafeAreaElement } from './element';

const SafeArea = registerPlugin<SafeAreaPlugin>('SafeArea', {
web: () => import('./web').then(m => new m.SafeAreaWeb()),
Expand All @@ -13,7 +13,7 @@ const controller = new SafeAreaController();
export * from './definitions';
export { SafeArea };
export { controller as SafeAreaController };
export { SafeAreaElement, registerSafeAreaElement };
export { registerSafeAreaElement };

declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
Expand Down

0 comments on commit cfb162a

Please sign in to comment.