Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

CoronaView run parameters
Started by remyb Feb 12 2018 11:34 AM

2 replies to this topic
ios coronacards sdk

Best Answer vlads , 13 February 2018 - 06:28 AM

Indeed, documentation is missing. Valid keys are:

- "orientation" value expected to be NSString as in build.settings

- "contentWidth" and "contentHeight" - value NSNumber

 

Also, whole dictionary would be pushed as launch args to the main.lua (local launchArgs = ...)

 

Have fun!

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

remyb

[GLOBAL: userInfoPane.html]
remyb
  • Observer

  • 9 posts
  • Corona SDK

Hello,

 

I'm integrating the CoronaCards SDK on iOS, and the documentation seems incomplete regarding this method:

 

@interface CoronaView : GLKView

...

- (NSInteger)runWithPath:(NSString*)path parameters:(NSDictionary *)params;

...

 

 

@end

 

What are the different parameters ?

Is there a way to give a special path for the licence for example?

 

Thank you,

Rémy.

 

 

 



[TOPIC: post.html]
#2

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,009 posts
  • Corona Staff

  Best Answer

Indeed, documentation is missing. Valid keys are:

- "orientation" value expected to be NSString as in build.settings

- "contentWidth" and "contentHeight" - value NSNumber

 

Also, whole dictionary would be pushed as launch args to the main.lua (local launchArgs = ...)

 

Have fun!



[TOPIC: post.html]
#3

akao

[GLOBAL: userInfoPane.html]
akao
  • Contributor

  • 378 posts
  • Corona SDK

@vlads

We are currently running a CoronaCards project for both Android and iOS and we are having trouble getting landscape to work. 

 

How do we set the orientation (and any other parameters) for Android? Thanks!




[topic_controls]
[/topic_controls]