Jump to content

servermodule mobile


jahlxx

Recommended Posts

1 hour ago, jahlxx said:

Hi all.

In applications, in servermodule, in beforeinit procedure, I load some custom css. I have hybrid application.

Is there any way to detect the device from I am calling the application, and if it is a mobile device con't load that css?

Thanks.

 

 

 

Hi, "in servermodule, in beforeinit procedure" - You can't because this information is obtained from the device when the uniSession is created.

when uniSession is created You can check device type via:        If UniApplication.UniPlatform <> [upDesktop] then

You can try to load mobile css in procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject);

after check UniApplication.UniPlatform
 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...