question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why have SingleInstance?

See original GitHub issue

Only difference between SingleInstance and Singleton is that it doesn’t depend on the instance being set in Awake.

What’s the benefit?

I propose removing SingleInstance and replacing its usage with Singleton.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:34 (34 by maintainers)

github_iconTop GitHub Comments

2reactions
StephenHodgsoncommented, Oct 11, 2017

I agree. My only goal here is to reduce the amount of complexity and redundancy.

1reaction
StephenHodgsoncommented, Oct 13, 2017

Could we also only have it call FindObjectsOfType once, and every subsequent time only return null unless Awake sets it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: when should I use singleInstance launchmode
singleInstance launchmode will be used when you do not want any other activity to be a part of the task.Its the only activity...
Read more >
What is a relation between Dependency Injection, single ...
Basically, singleton's main purpose is to maintain lifetime of exactly one instance : it is created once at startup (or first use) and...
Read more >
Understand Android Activity's launchMode - The Cheese Factory
The difference is Task hold this Activity could have only one Activity, the singleInstance one. If another Activity is called from this kind...
Read more >
singleInstance Property (HTA:APPLICATION)
Multiple instances of the specified application can run at the same time. The property is read-only. The property has a default value of...
Read more >
Part 7, "singleInstance" vs "singleTask" - YouTube
In this video, we discuss about behaviour of " singleInstance " activity with and without "taskAffinity". We also observe that theoretically ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found