-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mobile): allow window customizations (toolbar color, presentatio…
…n style, width and height)
- Loading branch information
Showing
7 changed files
with
80 additions
and
28 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
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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
import { Logger, UserManagerSettingsStore } from 'oidc-client-ts'; | ||
import { Logger } from 'oidc-client-ts'; | ||
|
||
import { MobileWindowParams } from '../models/mobile-window-params.model'; | ||
import { MobileWindow } from './mobile-window'; | ||
|
||
export class MobileNavigator { | ||
private readonly _logger = new Logger('MobileNavigator'); | ||
|
||
constructor( | ||
public settings: UserManagerSettingsStore | ||
) { | ||
// TODO: manage settings | ||
} | ||
|
||
public prepare(params: MobileWindowParams, redirectUrl: string): MobileWindow { | ||
// TODO: manage params | ||
public prepare(redirectUrl: string, params: MobileWindowParams): MobileWindow { | ||
this._logger.create('prepare'); | ||
return new MobileWindow(params, redirectUrl); | ||
return new MobileWindow(redirectUrl, params); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,3 +1,27 @@ | ||
export interface MobileWindowParams { | ||
mobileWindowName?: string; | ||
/** | ||
* A hex color to which the toolbar color is set. | ||
*/ | ||
mobileWindowToolbarColor?: string; | ||
|
||
/** | ||
* iOS only: The presentation style of the browser. Defaults to fullscreen. | ||
* | ||
* Ignored on other platforms. | ||
*/ | ||
mobileWindowPresentationStyle?: 'fullscreen' | 'popover'; | ||
|
||
/** | ||
* iOS only: The width the browser when using presentationStyle 'popover' on iPads. | ||
* | ||
* Ignored on other platforms. | ||
*/ | ||
mobileWindowWidth?: number; | ||
|
||
/** | ||
* iOS only: The height the browser when using presentationStyle 'popover' on iPads. | ||
* | ||
* Ignored on other platforms. | ||
*/ | ||
mobileWindowHeight?: 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
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
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