C# Class MediaAppSample.Core.Services.NavigationManagerBase

Base class for accessing navigation services on the platform currently executing.
Inheritance: ServiceBase
Afficher le fichier Open project: Microsoft/TVHelpers

Méthodes publiques

Méthode Description
About ( ) : void
AccountForgot ( object parameter = null ) : void
AccountSignin ( object parameter = null ) : void
AccountSignup ( object parameter = null ) : void
CanGoBack ( ) : bool

Indicates whether or not a back navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go back as well.

CanGoForward ( ) : bool

Indicates whether or not a forward navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go forward as well.

ClearBackstack ( ) : void

Clears the navigation backstack of the window.

Details ( object parameter ) : void
Exit ( ) : void

Exits an application.

GoBack ( ) : bool

Navigates back one page. Will also check to see if the frame contains a WebView and if the WebView can go back, it will perform back on that WebView instead.

GoForward ( ) : bool

Navigates forward one page. Will also check to see if the frame contains a WebView and if the WebView can go forward, it will perform forward on that WebView instead.

HandleActivation ( IActivatedEventArgs e, Frame rootFrame ) : void

Handle activation of the event and any navigation necessary.

Home ( object parameter = null ) : void
Media ( object parameter ) : void
Movies ( ) : void
NavigateTo ( NavigationRequest request ) : void

Navigates to a page specified in the navigation request object.

NavigateTo ( object model ) : void
NavigateToWebBrowser ( string webAddress ) : void

Navigates to an external web browser.

NavigateToWebView ( string webAddress ) : void

Navigates to an internal app web browser.

PrivacyPolicy ( ) : void
Queue ( ) : void
RateApplicationAsync ( ) : Task
RemovePreviousPage ( ) : void

Removes the previous page in the navigation backstack.

Search ( object parameter = null ) : void
SendEmailAsync ( string subject, string body, string toRecipient ) : Task

Send an e-mail.

SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients = null ) : Task

Send an e-mail.

SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients, string bccRecipients ) : Task

Send an e-mail.

Settings ( object parameter = null ) : void
TV ( ) : void
TermsOfService ( ) : void
UpdateTitleBarBackButton ( ) : void

Updates the navigate back button in the app window's title bar.

Welcome ( object parameter = null ) : void

Méthodes protégées

Méthode Description
CreateFrame ( ) : Frame
Initialize ( ) : void

Initialization logic which is called on launch of this application.

OnActivation ( LaunchActivatedEventArgs e ) : bool
OnActivation ( ProtocolActivatedEventArgs e ) : bool
OnActivation ( ToastNotificationActivatedEventArgs e ) : bool
OnActivation ( VoiceCommandActivatedEventArgs e ) : bool
SerializeParameter ( object obj ) : object

Serializes a parameter to string if not a primitive type so that app suspension can properly happen.

WebView ( object parameter ) : void

Private Methods

Méthode Description
CoreDispatcher_AcceleratorKeyActivated ( CoreDispatcher sender, AcceleratorKeyEventArgs e ) : void

Invoked on every keystroke, including system keys such as Alt key combinations, when this page is active and occupies the entire window. Used to detect keyboard navigation between pages even when the page itself doesn't have focus.

CoreWindow_PointerPressed ( CoreWindow sender, PointerEventArgs e ) : void

Invoked on every mouse click, touch screen tap, or equivalent interaction when this page is active and occupies the entire window. Used to detect browser-style next and previous mouse button clicks to navigate between pages.

HardwareButtons_BackPressed ( object sender, Windows e ) : void

Invoked when the hardware back button is pressed. For Windows Phone only.

NavigateToWeb ( string webAddress, bool showExternally ) : void
RegisterCoreWindow ( ) : void

Registers the window with all window events.

ViewBase_BackRequested ( object sender, BackRequestedEventArgs e ) : void
ViewModelAllowGoBack ( Frame frame ) : bool

Checks a ViewModels to see if it will allow a nagivation back.

ViewModelAllowGoForward ( Frame frame ) : bool

Checks a ViewModels to see if it will allow a nagivation forward.

Method Details

About() public méthode

public About ( ) : void
Résultat void

AccountForgot() public abstract méthode

public abstract AccountForgot ( object parameter = null ) : void
parameter object
Résultat void

AccountSignin() public abstract méthode

public abstract AccountSignin ( object parameter = null ) : void
parameter object
Résultat void

AccountSignup() public abstract méthode

public abstract AccountSignup ( object parameter = null ) : void
parameter object
Résultat void

CanGoBack() public méthode

Indicates whether or not a back navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go back as well.
public CanGoBack ( ) : bool
Résultat bool

CanGoForward() public méthode

Indicates whether or not a forward navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go forward as well.
public CanGoForward ( ) : bool
Résultat bool

ClearBackstack() public méthode

Clears the navigation backstack of the window.
public ClearBackstack ( ) : void
Résultat void

CreateFrame() protected abstract méthode

protected abstract CreateFrame ( ) : Frame
Résultat Windows.UI.Xaml.Controls.Frame

Details() public abstract méthode

public abstract Details ( object parameter ) : void
parameter object
Résultat void

Exit() public méthode

Exits an application.
public Exit ( ) : void
Résultat void

GoBack() public méthode

Navigates back one page. Will also check to see if the frame contains a WebView and if the WebView can go back, it will perform back on that WebView instead.
public GoBack ( ) : bool
Résultat bool

GoForward() public méthode

Navigates forward one page. Will also check to see if the frame contains a WebView and if the WebView can go forward, it will perform forward on that WebView instead.
public GoForward ( ) : bool
Résultat bool

HandleActivation() public méthode

Handle activation of the event and any navigation necessary.
public HandleActivation ( IActivatedEventArgs e, Frame rootFrame ) : void
e IActivatedEventArgs Activation args.
rootFrame Windows.UI.Xaml.Controls.Frame Root frame of the app.
Résultat void

Home() public abstract méthode

public abstract Home ( object parameter = null ) : void
parameter object
Résultat void

Initialize() protected méthode

Initialization logic which is called on launch of this application.
protected Initialize ( ) : void
Résultat void

Media() public abstract méthode

public abstract Media ( object parameter ) : void
parameter object
Résultat void

Movies() public abstract méthode

public abstract Movies ( ) : void
Résultat void

NavigateTo() public méthode

Navigates to a page specified in the navigation request object.
public NavigateTo ( NavigationRequest request ) : void
request NavigationRequest Request object instance.
Résultat void

NavigateTo() public abstract méthode

public abstract NavigateTo ( object model ) : void
model object
Résultat void

NavigateToWebBrowser() public méthode

Navigates to an external web browser.
public NavigateToWebBrowser ( string webAddress ) : void
webAddress string URL to navigate to.
Résultat void

NavigateToWebView() public méthode

Navigates to an internal app web browser.
public NavigateToWebView ( string webAddress ) : void
webAddress string URL to navigate to.
Résultat void

OnActivation() protected abstract méthode

protected abstract OnActivation ( LaunchActivatedEventArgs e ) : bool
e Windows.ApplicationModel.Activation.LaunchActivatedEventArgs
Résultat bool

OnActivation() protected abstract méthode

protected abstract OnActivation ( ProtocolActivatedEventArgs e ) : bool
e Windows.ApplicationModel.Activation.ProtocolActivatedEventArgs
Résultat bool

OnActivation() protected abstract méthode

protected abstract OnActivation ( ToastNotificationActivatedEventArgs e ) : bool
e ToastNotificationActivatedEventArgs
Résultat bool

OnActivation() protected abstract méthode

protected abstract OnActivation ( VoiceCommandActivatedEventArgs e ) : bool
e VoiceCommandActivatedEventArgs
Résultat bool

PrivacyPolicy() public méthode

public PrivacyPolicy ( ) : void
Résultat void

Queue() public abstract méthode

public abstract Queue ( ) : void
Résultat void

RateApplicationAsync() public méthode

public RateApplicationAsync ( ) : Task
Résultat Task

RemovePreviousPage() public méthode

Removes the previous page in the navigation backstack.
public RemovePreviousPage ( ) : void
Résultat void

Search() public abstract méthode

public abstract Search ( object parameter = null ) : void
parameter object
Résultat void

SendEmailAsync() public méthode

Send an e-mail.
public SendEmailAsync ( string subject, string body, string toRecipient ) : Task
subject string Subject of the message
body string Body of the message
toRecipient string
Résultat Task

SendEmailAsync() public méthode

Send an e-mail.
public SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients = null ) : Task
subject string Subject of the message
body string Body of the message
toRecipients string To recipients
ccRecipients string CC recipients
Résultat Task

SendEmailAsync() public méthode

Send an e-mail.
public SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients, string bccRecipients ) : Task
subject string Subject of the message
body string Body of the message
toRecipients string To recipients
ccRecipients string CC recipients
bccRecipients string BCC recipients
Résultat Task

SerializeParameter() protected méthode

Serializes a parameter to string if not a primitive type so that app suspension can properly happen.
protected SerializeParameter ( object obj ) : object
obj object Parameter object to serialize.
Résultat object

Settings() public abstract méthode

public abstract Settings ( object parameter = null ) : void
parameter object
Résultat void

TV() public abstract méthode

public abstract TV ( ) : void
Résultat void

TermsOfService() public méthode

public TermsOfService ( ) : void
Résultat void

UpdateTitleBarBackButton() public méthode

Updates the navigate back button in the app window's title bar.
public UpdateTitleBarBackButton ( ) : void
Résultat void

WebView() protected abstract méthode

protected abstract WebView ( object parameter ) : void
parameter object
Résultat void

Welcome() public abstract méthode

public abstract Welcome ( object parameter = null ) : void
parameter object
Résultat void