pub struct AccessoryManager;

Implementations§

§

impl AccessoryManager

pub fn RegisterAccessoryApp() -> Result<HSTRING>

pub fn GetNextTriggerDetails() -> Result<IAccessoryNotificationTriggerDetails>

pub fn ProcessTriggerDetails<P0>(pdetails: P0) -> Result<()>

pub fn PhoneLineDetails() -> Result<IVectorView<PhoneLineDetails>>

pub fn GetPhoneLineDetails(phoneline: GUID) -> Result<PhoneLineDetails>

pub fn AcceptPhoneCall(phonecallid: u32) -> Result<()>

pub fn AcceptPhoneCallOnEndpoint( phonecallid: u32, endpoint: PhoneCallAudioEndpoint ) -> Result<()>

pub fn AcceptPhoneCallWithVideo(phonecallid: u32) -> Result<()>

pub fn AcceptPhoneCallWithVideoOnAudioEndpoint( phonecallid: u32, endpoint: PhoneCallAudioEndpoint ) -> Result<()>

pub fn RejectPhoneCall(phonecallid: u32) -> Result<()>

pub fn RejectPhoneCallWithText( phonecallid: u32, textresponseid: u32 ) -> Result<()>

pub fn MakePhoneCall(phoneline: GUID, phonenumber: &HSTRING) -> Result<()>

pub fn MakePhoneCallOnAudioEndpoint( phoneline: GUID, phonenumber: &HSTRING, endpoint: PhoneCallAudioEndpoint ) -> Result<()>

pub fn MakePhoneCallWithVideo( phoneline: GUID, phonenumber: &HSTRING ) -> Result<()>

pub fn MakePhoneCallWithVideoOnAudioEndpoint( phoneline: GUID, phonenumber: &HSTRING, endpoint: PhoneCallAudioEndpoint ) -> Result<()>

pub fn SwapPhoneCalls( phonecallidtohold: u32, phonecallidonhold: u32 ) -> Result<()>

pub fn HoldPhoneCall(phonecallid: u32, holdcall: bool) -> Result<()>

pub fn EndPhoneCall(phonecallid: u32) -> Result<()>

pub fn SetPhoneMute(value: bool) -> Result<()>

pub fn PhoneMute() -> Result<bool>

pub fn SetPhoneCallAudioEndpoint(value: PhoneCallAudioEndpoint) -> Result<()>

pub fn PhoneCallAudioEndpoint() -> Result<PhoneCallAudioEndpoint>

pub fn SnoozeAlarm(alarmid: GUID) -> Result<()>

pub fn SnoozeAlarmForSpecifiedTime( alarmid: GUID, timespan: TimeSpan ) -> Result<()>

pub fn DismissAlarm(alarmid: GUID) -> Result<()>

pub fn SnoozeReminder(reminderid: GUID) -> Result<()>

pub fn SnoozeReminderForSpecifiedTime( reminderid: GUID, timespan: TimeSpan ) -> Result<()>

pub fn DismissReminder(reminderid: GUID) -> Result<()>

pub fn GetMediaMetadata() -> Result<MediaMetadata>

pub fn MediaPlaybackCapabilities() -> Result<PlaybackCapability>

pub fn MediaPlaybackStatus() -> Result<PlaybackStatus>

pub fn PerformMediaPlaybackCommand(command: PlaybackCommand) -> Result<()>

pub fn DoNotDisturbEnabled() -> Result<bool>

pub fn DrivingModeEnabled() -> Result<bool>

pub fn BatterySaverState() -> Result<bool>

pub fn GetApps() -> Result<IMapView<HSTRING, AppNotificationInfo>>

pub fn EnableNotificationsForApplication(appid: &HSTRING) -> Result<()>

pub fn DisableNotificationsForApplication(appid: &HSTRING) -> Result<()>

pub fn IsNotificationEnabledForApplication(appid: &HSTRING) -> Result<bool>

pub fn GetEnabledAccessoryNotificationTypes() -> Result<i32>

pub fn EnableAccessoryNotificationTypes( accessorynotificationtypes: i32 ) -> Result<()>

pub fn DisableAllAccessoryNotificationTypes() -> Result<()>

pub fn GetUserConsent() -> Result<bool>

pub fn GetAppIcon(appid: &HSTRING) -> Result<IRandomAccessStreamReference>

pub fn RingDevice() -> Result<()>

pub fn SpeedDialList() -> Result<IVectorView<SpeedDialEntry>>

pub fn ClearToast(instanceid: &HSTRING) -> Result<()>

pub fn IsPhonePinLocked() -> Result<bool>

pub fn IncreaseVolume(step: i32) -> Result<()>

pub fn DecreaseVolume(step: i32) -> Result<()>

pub fn SetMute(mute: bool) -> Result<()>

pub fn SetRingerVibrate(ringer: bool, vibrate: bool) -> Result<()>

pub fn VolumeInfo() -> Result<VolumeInfo>

pub fn GetAllEmailAccounts() -> Result<IVectorView<EmailAccountInfo>>

pub fn GetFolders( emailaccount: &HSTRING ) -> Result<IVectorView<EmailFolderInfo>>

pub fn EnableEmailNotificationEmailAccount(emailaccount: &HSTRING) -> Result<()>

pub fn DisableEmailNotificationEmailAccount( emailaccount: &HSTRING ) -> Result<()>

pub fn EnableEmailNotificationFolderFilter<P0>( emailaccount: &HSTRING, folders: P0 ) -> Result<()>
where P0: IntoParam<IVectorView<HSTRING>>,

pub fn UpdateEmailReadStatus<P0>(messageentryid: P0, isread: bool) -> Result<()>
where P0: IntoParam<BinaryId>,

pub fn SnoozeAlarmByInstanceId(instanceid: &HSTRING) -> Result<()>

pub fn DismissAlarmByInstanceId(instanceid: &HSTRING) -> Result<()>

pub fn SnoozeReminderByInstanceId(instanceid: &HSTRING) -> Result<()>

pub fn DismissReminderByInstanceId(instanceid: &HSTRING) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.