playMaker

Author Topic: How to get AndroidJavaObject  (Read 300 times)

nantian

  • Playmaker Newbie
  • *
  • Posts: 4
How to get AndroidJavaObject
« on: November 07, 2021, 11:34:28 AM »
I don't know how to get AndroidJavaObject in Variables. I hope someone can tell me. thank you.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6512
    • jinxtergames
Re: How to get AndroidJavaObject
« Reply #1 on: November 07, 2021, 07:25:20 PM »
Hi.
DO you want to get it from an existing script?

Can you give some more details as it looks like you will need specific custom made actions or a custom script and trigger with some actions
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

nantian

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to get AndroidJavaObject
« Reply #2 on: November 08, 2021, 10:53:19 AM »
Yes, I want to get it from an existing script. It would be nice to declare an androidjavaobject in variables. I want to store this object after performing a custom action.

nantian

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to get AndroidJavaObject
« Reply #3 on: December 05, 2021, 09:09:16 PM »
Hi.
DO you want to get it from an existing script?

Can you give some more details as it looks like you will need specific custom made actions or a custom script and trigger with some actions

Is there anybody who can help me? thanks.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6512
    • jinxtergames
Re: How to get AndroidJavaObject
« Reply #4 on: December 06, 2021, 08:31:15 AM »
Hi.
You can use the 'Object' Variable for uncommon variable types

Code: [Select]
[ObjectType(typeof(AndroidJavaObject))]
public FsmObject aJavaObject;
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!

nantian

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to get AndroidJavaObject
« Reply #5 on: Today at 12:25:58 AM »
Hi.
You can use the 'Object' Variable for uncommon variable types

Code: [Select]
[ObjectType(typeof(AndroidJavaObject))]
public FsmObject aJavaObject;

It works! Thank you.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6512
    • jinxtergames
Re: How to get AndroidJavaObject
« Reply #6 on: Today at 09:41:07 AM »
Hi.
You can find the Playmaker API here btw (if you did not know already)
Ecosystem might not work at the moment
here are direct Github Links to the custom actions :
https://github.com/PlayMakerEcosystem
https://github.com/jeanfabre


Join the PlayMaker Discord Channel!