playMaker

Author Topic: How to get AndroidJavaObject  (Read 6253 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: 7623
    • 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

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: 7623
    • 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;

nantian

  • Playmaker Newbie
  • *
  • Posts: 4
Re: How to get AndroidJavaObject
« Reply #5 on: December 07, 2021, 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: 7623
    • jinxtergames
Re: How to get AndroidJavaObject
« Reply #6 on: December 07, 2021, 09:41:07 AM »
Hi.
You can find the Playmaker API here btw (if you did not know already)

TerryBK

  • Playmaker Newbie
  • *
  • Posts: 1
    • panda helper
Re: How to get AndroidJavaObject
« Reply #7 on: August 07, 2022, 11:18:13 AM »
In addition to that, I wanted to obtain it from an already existing script. It would be convenient if variables could be used to declare an androidjavaobject. Following the completion of a user-defined action, I want to save this object. Nevertheless, I did understand what was being discussed, and I appreciate you providing Playmaker api link.