I have already asked the following questions to my home SO if I only want to start Siri.
Can you invoke Siri from an app program using the API?
#import "GSEvent.h"
- (void) launchSiri {
self simulateTouchEvent: kGSEventMenuButtonDown;
double delayInSeconds = 1.0;
dispatch_time_topTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds*NSEC_PER_SEC));
dispatch_after(popTime, dispatch_get_main_queue(),^(void){
self simulateTouchEvent: kGSEventMenuButtonUp;
});
}
- (void) simulateTouchEvent: (GSEventType) type
{
struct GSEventRecord;
memset(&record,0,sizeof(record)));
record.type=type;
record.timestamp=GSCurrentEventTimestamp();
GSSendSystemEvent (&record);
}
Unfortunately, I am also studying SiriKit, so I don't know if I can realize what you said.
(It has not been realized, but Siri seems to be able to invoke app functions)
Apple SiriKit, but the support seems to be from iOS10, so
It may be difficult if the operating system that I supported in the past is...
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
581 PHP ssh2_scp_send fails to send files as intended
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.