Struct windows::ApplicationModel::Core::CoreApplication
pub struct CoreApplication;
Implementations§
§impl CoreApplication
impl CoreApplication
pub fn Id() -> Result<HSTRING>
pub fn Suspending<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<SuspendingEventArgs>>,
pub fn RemoveSuspending(token: EventRegistrationToken) -> Result<()>
pub fn Resuming<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveResuming(token: EventRegistrationToken) -> Result<()>
pub fn Properties() -> Result<IPropertySet>
pub fn GetCurrentView() -> Result<CoreApplicationView>
pub fn Run<P0>(viewsource: P0) -> Result<()>where
P0: Param<IFrameworkViewSource>,
pub fn RunWithActivationFactories<P0>(
activationfactorycallback: P0,
) -> Result<()>where
P0: Param<IGetActivationFactory>,
pub fn BackgroundActivated<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<BackgroundActivatedEventArgs>>,
pub fn RemoveBackgroundActivated(token: EventRegistrationToken) -> Result<()>
pub fn LeavingBackground<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<LeavingBackgroundEventArgs>>,
pub fn RemoveLeavingBackground(token: EventRegistrationToken) -> Result<()>
pub fn EnteredBackground<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<EnteredBackgroundEventArgs>>,
pub fn RemoveEnteredBackground(token: EventRegistrationToken) -> Result<()>
pub fn EnablePrelaunch(value: bool) -> Result<()>
pub fn RequestRestartAsync( launcharguments: &HSTRING, ) -> Result<IAsyncOperation<AppRestartFailureReason>>
pub fn RequestRestartForUserAsync<P0>(
user: P0,
launcharguments: &HSTRING,
) -> Result<IAsyncOperation<AppRestartFailureReason>>where
P0: Param<User>,
pub fn Exit() -> Result<()>
pub fn Exiting<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveExiting(token: EventRegistrationToken) -> Result<()>
pub fn UnhandledErrorDetected<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<UnhandledErrorDetectedEventArgs>>,
pub fn RemoveUnhandledErrorDetected(token: EventRegistrationToken) -> Result<()>
pub fn IncrementApplicationUseCount() -> Result<()>
pub fn DecrementApplicationUseCount() -> Result<()>
pub fn Views() -> Result<IVectorView<CoreApplicationView>>
pub fn CreateNewView( runtimetype: &HSTRING, entrypoint: &HSTRING, ) -> Result<CoreApplicationView>
pub fn MainView() -> Result<CoreApplicationView>
pub fn CreateNewViewFromMainView() -> Result<CoreApplicationView>
pub fn CreateNewViewWithViewSource<P0>(
viewsource: P0,
) -> Result<CoreApplicationView>where
P0: Param<IFrameworkViewSource>,
Auto Trait Implementations§
impl Freeze for CoreApplication
impl RefUnwindSafe for CoreApplication
impl Send for CoreApplication
impl Sync for CoreApplication
impl Unpin for CoreApplication
impl UnwindSafe for CoreApplication
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more