//! BiosCheckUpdateResult represent result of the PromptUpdateAsync request. | |
class BiosCheckUpdateResult | |
{ | |
//! Is new update available? | |
bool m_IsUpdate; | |
//! Is update mandatory? | |
bool m_IsMandatory; | |
}; | |
class BiosPackageService | |
{ | |
//! Async check if exist new update | |
/*! | |
@return EBiosError indicating if the async operation is pending. | |
*/ | |
proto native EBiosError CheckUpdateAsync(); | |
//! Prompt user to accept update with system GUI | |
/*! | |
@return EBiosError indicating if the async operation is pending. | |
*/ | |
proto native EBiosError PromptUpdateAsync(); | |
//! Show store for current title (system GUI). Only on Xbox. | |
/*! | |
@return EBiosError indicating if the async operation is pending. | |
*/ | |
proto native EBiosError ShowStoreAsync(); | |
//! Callback function for CheckUpdateAsync() | |
/*! | |
@param checkUpdateResult contain information about availability of new update and if it is mandatory. | |
@param error indicating success or fail of the async operation. | |
*/ | |
void OnCheckUpdate(BiosCheckUpdateResult checkUpdateResult, EBiosError error) | |
{ | |
if ( !error && ( checkUpdateResult.m_IsUpdate || checkUpdateResult.m_IsMandatory ) ) | |
{ | |
OnlineServices.PromptUpdate(); | |
} | |
} | |
//! Callback function for PromptUpdateAsync() | |
/*! | |
Show system UI with update. | |
On Xbox, game suspend after accept update. | |
@param error indicating success or fail of the async operation. | |
*/ | |
void OnPromptUpdate(EBiosError error) | |
{ | |
OnlineServices.ErrorCaught( error ); | |
} | |
//! Callback function for ShowStoreAsync() | |
/*! | |
@param error indicating success or fail of the async operation. | |
*/ | |
void OnShowStore(EBiosError error) | |
{ | |
OnlineServices.ErrorCaught( error ); | |
} | |
}; |